# Tag Info

20

The following solution does not (anymore) use ImageMagick's convert command as this would always create raster images, which will stand out from the text. Instead, it uses Ghostscript to vectorise the letters so that they appear like normal text but are in fact an uncopyable image. Note that you also have to run pdflatex with the --shell-escape switch ...

8

The two forms \epsilon and \varepsilon are just graphical variants of the same letter and using both unnecessarily confuses readers. The pslatex package is obsolete and deprecated. You should have \usepackage{mathptmx} instead. Which doesn't solve your problem, anyway, because the Symbol font used for Greek letters doesn't have different glyphs for the ...

8

This works for me, but I don't know about your OS, so I'm not sure if it will work for you. Note that the command convert is part of ImageMagick. Compile with -shell-escape enabled. \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage{bashful,graphicx} \begin{document} \bash echo "jon@jon.com" | convert label:@- email.png \END ...

8

\setminus is a binary operator, thus TeX inserts \medmuskip around it. To get rid of the space, \setminus can be put into curly braces, then {\setminus} becomes a subformula with spacing rules of an ordinary math atom (\mathord). or \medmuskip can be changed, examples: \documentclass[12pt]{article} \usepackage{amssymb} \begin{document} \noindent ...

7

On the other hand, if you have Lato.ttf or Lato.otf installed and want to use them, here is a way. Use xelatex or lualatex for compiling the following code. \documentclass{article} \usepackage{fontspec} \setmainfont[Ligatures=TeX]{Lato Light} \usepackage{blindtext} \begin{document} \Blinddocument \end{document} If you don't have Lato installed, ...

7

With the command-line PDF Toolkit you can burst the PDF into single-page outputs: burst Splits a single input PDF document into individual pages. Also creates a report named doc_data.txt which is the same as the output from dump_data. If the output section is omitted, then PDF pages are named: pg_%04d.pdf, e.g.: pg_0001.pdf, pg_0002.pdf, etc. To ...

6

Use mdframed: \documentclass{article} \usepackage{mdframed} \usepackage{xcolor} \usepackage{lipsum} \newmdenv[ hidealllines=true, backgroundcolor=pink, topline=true, bottomline=true, linewidth=3pt, linecolor=red ]{mybox} \begin{document} \begin{mybox} \lipsum[1] \end{mybox} \end{document}

6

Option remember picture remembers the position of tikzpicture in the .aux file and uses the remembered value in the next LaTeX run. In more complicate cases (as in the question with nested tikzpictures) it can take even more runs. In your case three runs are needed: pdflatex xxx pdflatex xxx pdflatex xxx or xelatex xxx xelatex xxx xelatex xxx But do ...

6

It's a feature. Package pdfrender redefines \normalcolor to reset the "normal" behavior. For example, there is some emphasized text via \pdfrender and a page break occurs. Then the header and footer should have normal rendering. I must admit, the idea, that someone wants to set whole documents with \pdfrender didn't cross my mind, when I wrote pdfrender. ...

6

This is what I get: \documentclass{article} \begin{document} \cite{Coscia,Moradi} \begin{thebibliography}{99} %%<-- you have to give the width of largest number \bibitem{Coscia} M. Cosica, F. Gianootti, and D. Pedreschi, A Classification for Community Discovery Methods in Complex Networks," \emph{CoRR} as/1206.3552 (2012) ...

5

As you say you're compiling with pdflatex, I assume you're using the lato package, so you can just set the default weight \mddefault to light: \documentclass{article} \usepackage[default]{lato} \usepackage{lipsum}% for dummy text \renewcommand{\mddefault}{l}% switch default weight to light \begin{document} \section{Title} \lipsum \end{document}

5

Use the following code to extract each page and save it in a separate PDF file. The steps are: Change \def\filename{<filename>-pics}. Compile with pdflatex -shell-escape extractor. % extractor.tex \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{template.tex} \documentclass[preview]{standalone} \usepackage{graphicx} ...

4

Too long for a comment. Can you try the following example? \documentclass{article} \begin{document} Hello \pdfsetmatrix{.52495 0 0 .52495} World \end{document} If it breaks, what happens if the \pdfsetmatrix line is replaced by the following? \pdfsetmatrix{2 0 0 2} or \pdfsetmatrix{2.0 0.0 0.0 2.0} So far I could not reproduce the problem, ...

4

If an EPS file is converted with ps2pdf, the result is usually a PDF file with a full page, because EPS files are not allowed to change the media size. Therefore it is better to use option -dEPSCrop: ps2pdf -dEPSCrop Mad1.eps Then ghostscript will look at a comment %%BoundingBox to set the media size. Alternatively, epstopdf can be used that does a ...

4

That file runs fine in my up-to-date TeXLive 2013. However, try \usepackage[crop=off]{auto-pst-pdf} and, by the way, use \usepackage[T1]{fontenc}%%%%% use T1 encoded fonts \usepackage{concmath} \usepackage[euler-digits,euler-hat-accent]{eulervm}

4

The link border style can also be configured to some degree, from hyperref's README: Link border style Links can be underlined instead of the default rectangle or options "colorlinks", "frenchlinks". This is done by option pdfborderstyle={/S/U/W 1} Some remarks: AR7/Linux seems to have a bug, that don't use the default value ...

3

With tcolorbox \documentclass{standalone} \usepackage{lipsum} \usepackage{tcolorbox} \newtcolorbox{Mybox}{ colback=pink!90!black, colframe=black, arc=0pt, outer arc=0pt, boxrule=0pt, toprule=3pt, bottomrule=3pt } \begin{document} \begin{Mybox} \lipsum[1] \end{Mybox} \end{document} Previous example is the classic one, but with tcolorbox ...

3

I couldn't find a solution for initexmf errors. Instead I used \tikzset{external/system call= {pdflatex -save-size=80000 -pool-size=10000000 -extra-mem-top=50000000 -extra-mem-bot=10000000 -main-memory=90000000 ...

3

Save the inner circle as a path first, unfill it and then draw it. input hatching; u := 1cm; path circle; circle = fullcircle scaled 10u; outputtemplate:="%j%c.mps"; beginfig(1); hatchfill circle withcolor (45, 5mm, -.5bp); draw circle; path inner_circle; inner_circle := fullcircle scaled 5u; % This needs to be filled with color white unfill ...

3

For a change, you can use background package that provides \BgThispage macro: \documentclass[ letterpaper, 10pt]{article} \usepackage{pdfpages} \usepackage[]{background} %% this loads tikz \backgroundsetup{ pages=some, scale=1, opacity=1, angle=0, color=black, contents={% \begin{tikzpicture}[overlay,remember picture,shift={(current page.north west)}] ...

3

This stems from an overfull \hbox as the image is too wide to fit within the margins. If you include the image inside a frame % In the document preamble to show the text block visually \usepackage{showframe}% http://ctan.org/pkg/showframe \begin{figure}[ht] \setlength{\fboxsep}{-\fboxrule} \fbox{\includegraphics[height = 9.6cm]{testschema}} ... ...

3

run the document with pst2pdf <file> and it will produce a complete document and also a single pdf for every pspicture enviroment in a subdirectory. For Windows it needs only an installed Perl like Strawbery Perl or the one from http://www.activestate.com/perl. For Linux Perl is present by default :-)

3

You can avoid the problem with pgf 2.1 and with the next code \draw[color=gray,dashed] plot (\x,{\x * (\w0 / \z0)}); \draw[color=gray,dashed] plot (\x,{-\x * (\w0 / \z0)}); Remark : a) Two points are enough to draw a line with pgf 2 or pgf 3. so : \draw[color=gray,dashed,samples=2] plot (\x,{\x * (\w0 / \z0)}); ...

2

I had exactly the same issue on Debian Wheezy. Out of hundreds dynamically produced eps figures, there were some, which lead to the error Command token too long This is a known issue in the PDF rendering library poppler. Apparently, the error appears when the first object in the eps is not a stream, the error message itself can safely be ignored. But ...

2

You can also do with the following approach. Compile it with pdflatex -shell-escape main.tex where main.tex is as follows. % main.tex \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{figure.tex} \documentclass[pstricks,border=12pt]{standalone} \begin{document} \begin{pspicture}(4,5) \psframe(0.7,2)(3.3,3) \rput{90}(2,2.5){First ...

2

I think that the problem is in your backend, because Rstudio uses texi2dvi to write pdf and then it does not know about biber. Try to change: \usepackage[backend=biber]{biblatex} with \usepackage[backend=bibtex]{biblatex} in the preamble. Normally this work.

2

Until someone finds a way within TeX, you can rasterize PDF-vector-graphics outside of TeX in your matlab-export-workflow, or from shell-escape within a TeX-document, in the TeX-import-workflow. Many tools rasterize vector files. ImageMagick, GraphicsMagick, Inkscape, GhostScript... and Xpdf, which I prefer. You can find precompiled binaries for all ...

2

The amount of space around a binary operation symbol is stored in the internal parameter \medmuskip; the standard value is set in fontmath.ltx, which is read at format creation, together with the values of its siblings \thinmuskip (the space inserted between a math operator and an ordinary symbol and in other situations) and \thickmuskip (the space around a ...

2