13,178 reputation
881182
bio website nobelprize.org
location here
age 24
visits member for 4 years
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
11
comment How to define a macro to create a new macro with a name passed as its argument?
If I use \expadafter\gdef\csname#1\endcsname{<content>} instead of \expadafter\newcommand\csname#1\endcsname{<content>}, is it ok?
Aug
10
comment How to vertically center `\begin{equation}…\end{equation}` in a table cell?
I just checked it and it really makes the displayed equation get vertically centered. Thanks.
Aug
10
comment How to vertically center `\begin{equation}…\end{equation}` in a table cell?
I just realized that your answer does not exactly center the displayed equation vertically. But Hendrik's answer does. Sorry. :-)
Aug
10
comment How to detect a blank line inserted by TeX when reading an external file line by line?
Because of manner restriction, I return the green check mark to you. :-)
Aug
10
comment How to detect a blank line inserted by TeX when reading an external file line by line?
I accepted this answer because I use it in my real scenario.
Aug
9
comment How to detect a blank line inserted by TeX when reading an external file line by line?
why did you not think a simpler one as shown below?
Aug
8
comment File input and output
The second example contains a bug. \read\file to \fileline should be invoked before \unless\ifeof\file. I tested your answer several hours ago, now I have changed the order, see my answer.
Aug
8
comment How do I execute some commands conditionally?
@Caramdir: I just want to let him know there is a good article that he might have not read yet.
Aug
8
comment How do I execute some commands conditionally?
@Caramdir: I support Peteris!
Aug
8
comment How do I execute some commands conditionally?
+1 Why did you not use * for the first \DeclareOption?
Aug
8
comment How to increase the padding in the code snippet box when using `listings`?
@przemoc: How to adjust the top and bottom margins as framesep=<value> also modifies the vertical spacing?
Aug
8
comment Outlined characters
+1 but text-search will be no longer possible. :-)
Aug
8
comment Is it possible to call an external application prior to latex.exe to prepare a new file to be imported from within the (La)TeX input file?
My dream has come true, see :-)
Aug
7
comment What is explpreset actually for?
Thanks for those who answered this question. All of them have been given a plus one for their good answers. However I have only one green check mark and it was given to Martin for the technical details. :-)
Aug
7
comment How to upload my packages or document classes to CTAN?
@Harrold: the blog has been deleted as I said above. :-)
Aug
7
comment How to align the top frame edges of source and formatted text with the same horizontal line?
Patching only works when frame=single and pos=b/t. When frame=single and pos=l, the patch does not work because the source code's right edge goes beyond the text width as shown above.
Aug
7
comment How to align the top frame edges of source and formatted text with the same horizontal line?
Redefining xleftimargin and xrightmargin in explpreset will not help if pos=t/b and frame=single are used. Thus patching is really needed.
Aug
7
comment How to get autoref working with different counters for different listing environments?
In my opinion, line numbers are not so useful. Their existence makes the code look stuffy.
Aug
7
comment How to use preview and animate packages together?
This code also does not work with PSTricks and animate.
Aug
7
comment How to align the top frame edges of source and formatted text with the same horizontal line?
I need to use aboveskip=\dimexpr\fboxsep+\fboxrule\relax and your code above to align the top frames.