To have no LaTeX margins for pictures [closed] - image

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have many types of diagrams in my paper.
I use at the moment horizontal pages to make pictures readable.
I would like to know how you can remove LaTeX margins from pages where there are pictures.
How can you have no margins for pictures in LaTeX?

Either diddle the various variables directly or use the geometry package.
LaTeX uses a lot of variable to describe the page, so setting them directly is a hassle, I really reccomend using geometry.
And remember there is a silent 1 inch margin. Moreover how close to the edge of the page you can actually print is dependent on you printer. Most won't actually let you get to the edge on any side.

The changepage package can be used to locally change the size of the area that content is put in. Documentation within the .sty file until I get around to writing a real manual.

I did this exact thing before. Here's the code:
\newenvironment{changemargin}{%
\begin{list}{}{%
\setlength{\textwidth}{\paperwidth}
\setlength{\textheight}{\paperheight}
%\setlength{\oddsidemargin}{-1in}
%\setlength{\evensidemargin}{-1in}
\setlength{\topmargin}{-1in}
\setlength{\topsep}{-1in}%
\setlength{\leftmargin}{-1.5in}%
\setlength{\rightmargin}{-1.5in}%
\setlength{\listparindent}{\parindent}%
\setlength{\itemindent}{\parindent}%
\setlength{\parsep}{\parskip}%
}%
\centering%
\item[]%
}{\end{list}}
On the page in question, I also used \clearpage, \pagestyle{empty} and enlargethispage{...}.

You can specify the width of the figure to be bigger than \textwidth.
I think includegraphics is the non-clipping version, (as opposed to includegraphics*)
I assume this would work as long as the vertical size would fit on the page.
Otherwise I'd look on CTAN for packages which allow you to change the margins on the fly.

Related

How was this animation made? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
i found an interesting effect on this site: https://iohk.io/
If you move your mouse around the effect will follow and change its colors, im really fascinated and wonder if there is a term for this kind of effect i can look into so i can learn how this was done.
While checking the source code i found the term "canvas", but its a huge topic.
Im not a developer myself and only know HTML/CSS right now, so please keep this in mind when answering.
Thanks in Advance.
http://vincentgarreau.com/particles.js/
That is the site from the creator, i haven't look in to it that much but all the information you need should be there.
You can use the menu to the right to change the way it looks.
Having looked at the page I initially thought of WebGL. On inspecting the page my suspicions were confirmed.
The page you linked to is using a ParticlesJS which looks like a library over WebGL. Given you are not a developer then this may be a little beyond you.

Emojis in Segmented Control [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I have emojis used in the different segments for my Segmented Control. When I select a segment, the selected segment highlights (indicates which one was selected), and the emoji suddenly becomes all white. Is there anyway to fix this issue? Thanks!
I use follow code and it worked for me.
OC:
[segmentedControl setTitleTextAttributes:#{NSForegroundColorAttributeName:[UIColor whiteColor]} forState:UIControlStateSelected];
Swift:
let segmentedControl = UISegmentedControl(items: ["😊","😢","moon"])
segmentedControl.setTitleTextAttributes([NSForegroundColorAttributeName:UIColor.whiteColor()], forState:.Selected)
I believe this is because the coding for emoji is not compatible with UIViews.
What you can do is select Momentary for the State. It will still disappear on click but will quickly come back.
Unfortunately the segment won't stay hilighted blue like you probably want though.

Ruby libraries to find "location" of items on laid out web page? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I'm looking for a library, or a strategy, that can be used, ideally in conjunction with Ruby/Nokogiri, to determine the layout location of items on a web page, when viewed in the browser.
For example, in the current page I'm looking at, there is a "Ask Question" button in the top right corner (I am guessing in the header). If, for example, I wanted to see where the all the words "question" are on the page, which would match this word, and other places hat have the word question, in terms of XY coordinates or pixels, how would I do that?
I clearly have to load the CSS. But, what else?
Any suggestions would be appreciated.
The Watir project might be able to help, as it talks directly to the browser, allowing you to get information about a page after the browser has finished rendering it. You'll need to look through the API to see if you can get the pixel locations for elements.
Pixel locations will be difficult though, because those are tied to font sizes and a real-human user could have something that is overriding the settings applied by the CSS. The information you get from a browser in your testing could vary wildly from what a real user would see. That might, or might not, be an issue for you.

How does Udacity create presentation where the text is in front and video in back? See pic [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
How does Udacity.com (new learning website) create presentation where the text is in front the video is in back? Is there any specific software they use to prepare the presentations?
Udacity is using Wacom Cintiq tablet for producing those presentations.
Some extra information to add on Suhair's info about the Wacom Cintiq tablet being used.
Katy Reichelt is in charge of the video editing process and she explains how it has evolved and how it is done in her blog.
In that post you will find a link to professor's John Regehr recollection of how the class is recorded:
The recording process is this. You shut yourself into a dark, soundproofed room, put on a mic, and turn on a video camera and a program that records the tablet. Then, record written and spoken material. The editors can remove bad takes and pauses, which after years of lecturing to a live audience was hard for me to internalize. However, in the end it was very freeing since I could draw pictures, change colors, lookup details on Wikipedia, and attempt to write neatly (always a struggle for me) — all without boring anyone except the editors.The editors are 100% crucial to what Udacity is doing, and the difference between unedited material and the final output is striking. I can’t say enough about how good their work is.
My best guess is something like the following:
Link

In LaTeX, how can I place text over an imported graphics object? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have an image in the eps format that I want to include in my document. The image contains only the geometry of the object; it does not contain the necessary text. It has some arrows, and I'd like to add the text in LaTeX so the labels (which include math) look clean.
How can I place an equation at a particular location over an imported figure?
You can use pgfonlayer and tikz. It is a bit complicated, but here is an example I have from a beamer presentation:
\pgfdeclarelayer{foreground}
\pgfdeclarelayer{background}
\pgfsetlayers{background,main,foreground}
\begin{tikzpicture}
\begin{pgfonlayer}{foreground}
\path (1.0,2.0) node (c) {{\color{blue} Some info...}}
(1.0,1.5) node (b) {{\color{blue}... which is cool!}};
\end{pgfonlayer}
\begin{pgfonlayer}{background}
\path (0,0) node (o) {
\includegraphics[width=\textwidth]{./figures/somefigure.eps}};
\end{pgfonlayer}
\end{tikzpicture}
Look at the overpic package by Rolf Niepraschk:
http://www.ctan.org/pkg/overpic
It combines includegraphics (graphicx package) and a picture environment.
It is very easy to use!
The psfrag package enables you to splice arbitrary LaTeX, including math, in place of text appearing in a .eps file. I find it indispensable.
You might want to look into the textpos package. See here
I decided to just attempt to use \rput(x,y){text}, and it worked after some trial and error with the coordinates. This is working for now but I'm still interested if someone has a better way. :)

Resources