\documentclass[preview,border=12pt,varwidth]{standalone}
\usepackage{pgffor}
\def\Person#1{%
\ifcsname#1\endcsname
\else
\expandafter\def\csname #1\endcsname{#1}%
\fi
\csname#1\endcsname
}
\begin{document}
\Person{Alan} took a shower when
\Person{Batman} was cooki...
Perhaps you should have asked your publisher or read the author guide (if available) before inserting all the forbidden stuff. — Thorsten Donig3 mins ago
@MarcoDaniel Wouldn't it be better to improve the question it is a duplicate of? If the answer which was improved here is unique to this question maybe it should be migrated to the other question?
@MarcoDaniel You are indeed right. The closed question not only seems the more popular one, but also the answers seem to be more sophisticated and helpful than those of the question it is supposed to be a duplicate of. This looks like an undesirable inconsistency to me, especially as it is probably a common problem for users. Could some moderator please look into this? Maybe one could merge the questions somehow? @JosephWright @stefankottwitz
Possible Duplicate:
Two figures side by side
I want to place 2 images side by side in LaTeX. I have 2 .png files and I don't understand how to do it in LaTeX. I have tried many ways but could not get a good result.
How can I put two figures side-by-side? Not two sub-figures, but two actual figures with separate "Fig.: bla bla" captions. A figure is supposed to spread over the entire text width, but I have two figures which are narrow and long, and I need to save the space in order to withstand the pages li...
The first is closed as duplicate of the second, but the first has about 10x the views and apparently better answers. Shouldn't one get them together somehow?
keep in mind that you can't change margins, font sizes and other settings provided by LaTeX Author Package for the publications in IMS journal Annals of Applied Statistics. In that case your changes will be dropped. So, such packages as changepage better not use.
I commented out changepage, and it still compiles. Probably dumb question, but does that mean I was not using changepage?
It has been so long that I can't remember what I was trying to use changepage for.
@JosephWright I'll wait on a little bit. If there are any more edits to the closed question, it would be an indication it should really be the open one.
@DonutE.Knot should work but an alternative would be to add cd output as a command step afer latex and before dvips. Or (simpler) not use -out-directory (in over 25 years of using tex Ive never felt the need to redirect the output in that way:-)
@DonutE.Knot whenever people redirect the output they end up breaking stuff and asking on sites like this how to get latex or bibtex (or dvips or whatever) to find the file they just redirected, it's for at best a cosmetic improvement and it complicates all tex processing which makes so much use of communication via auxiliary files