12,483 reputation
872172
bio website nobelprize.org
location here
age 24
visits member for 3 years, 8 months
seen Mar 6 '12 at 10:03

My last "answer" is here, but it was unfairly converted to a comment :-D.

I have problem to be neither asked nor answered.

enter image description here

enter image description here

\def\xport{%
    \rm X%
    \kern-.17em\lower.7ex\hbox{P}%
    \kern-.20em\lower.2ex\hbox{O}%
    \kern-.50em\lower-1.0ex\hbox{R}%
    \kern-.07em\lower-.09ex\hbox{T}%
}
\xport

Notes

  1. preview package
    • ignores \pagecolor{} and paper size.
    • needs -D10000 option to get a tight output.
    • cannot work with animate package.
  2. standalone class uses preview package internally so it does the same behaviour.

Aug
7
comment How to align the top frame edges of source and formatted text with the same horizontal line?
+1 The patch is necessary when pos=b or pos=t.
Aug
7
comment What kind of “magic” does preview package do to produce a tight paper size?
I have tested it for some scenario and it works in the same way the preview package works. It also fails to work with PSTricks and animate package. However, I am satisfied with this answer. :-)
Aug
7
comment How to place a program and a text side by side?
visualbasiccode.vb should be placed in sub folder codes for better file management so you need to change \lstinputlistings[style=A]{visualbasiccode.vb} to \lstinputlistings[style=A]{codes/visualbasiccode.vb}.
Aug
6
comment Prevent pdflatex from writing a bunch of files
@Andrey: Of course. The batch above must be adapted to suit our need.
Aug
6
comment How to use preview and animate packages together?
Neither xelatex nor latex-dvips-ps2pdf can compile it. ps2pdf produced error message: Error: /undefined in pgfo Operand stack: Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1910 1 3 %oparray_pop 1909 1 3 %oparray_pop 1893 to be continued...
Aug
6
comment How to place a program and a text side by side?
Please try style=B.
Aug
5
comment Change line spacing inside a node in TikZ
+2 @Caramdir: OK. thanks. :-)
Aug
5
comment Change line spacing inside a node in TikZ
length macros need \ (aka escape character) but counter macros do not. I also did the same mistake often in the past. :-)
Aug
5
comment What is the easiest way to get borders around a page in LaTeX?
This question is ambiguous. It will be better if you attach a hand-made drawing to this question to avoid ambiguity! :-)
Aug
5
comment Where are the necessary places to be appended with % to remove unwanted spaces?
This answer overused %!
Aug
4
comment How to remove trailing spaces at the end of each line in a block of code?
\ignorespacesafterend can be avoided if we use \pspicture...\endpspicture instead of \begin{pspicture}...\end{pspicture}.
Aug
4
comment What is \null and when do we need to use it?
+1 And question number 4 has been canceled because it was based on my wrong assumption. Thanks.
Aug
4
comment Is it OK to scale image by changing its resolution?
What is the geometrical form of a single pixel defined in an image file? Is it circular or rectangular?
Aug
4
comment Is it OK to scale image by changing its resolution?
+1 but up to now, I don't understand why the resolution is defined like that. In my mental model, changing resolution is related to resampling the image. :-)
Aug
3
comment How to force pdfTeX and XeTeX to produce the same measurement for the imported image?
I removed my answer and others might get confused with the koala's bad story.
Aug
3
comment What is XeTeX exactly and why should I use it?
xetex cannot determine the correct dimension of imported JPG images. We must convert the JPG to PDF first then xetex can produce the correct output. See here for the details.
Aug
3
comment What is XeTeX exactly and why should I use it?
One feature that I don't like is: Neither xetex nor xelatex support clipping! See this warning message.
Aug
3
comment How to translate this scenario to LaTeX looping macro?
@Herbert: This code can be compiled with neither xelatex nor xetex.
Aug
3
comment How to add a sequential number on the right hand of a mathematical formula?
A tip from me to SoftTimur: Unless you intentionally make displayed equations begin in a new paragraph (that I regard it as a bad practice), make sure there is no a blank line between text and displayed equations.
Aug
3
comment How to prevent \endlinechar=-1 from interfering a loaded EPS image?
Question 1: Is it OK if I use \catcode\endlinechar=9\relax instead of \endlinechar=-1\relax for all cases (whether or not I import PDF,EPS,JPG,PNG images followed by PSTricks, equation, etc)? Question 2: Why is there \catcode in \catcode\endlinechar=9\relax while no \catcode in the previous \endlinechar=-1\relax? Is \catcode mandatory?