# Tag Info

3

You can use PDF-XChange Viewer by Tracker Software (free unlimited demo version, Windoze only), which seems to have been superseded by PDF-XChange Editor. I assume the latter has the same capabilities with respect to this question, but I haven’t checked it out. Also, I’m not affiliated with this company in any way. There are limitations to the free/demo ...

4

The main point of this task is usage of pdfTeX primitives \pdfsavepos, \pdflastxpos, \pdflastypos. You can create a macro \saveposition which saves the actual position to the file \jobname.pos in the form: 1: 67.65254mm, 267.37009mm 2: 101.77405mm, 267.37009mm 3: 67.65254mm, 261.73753mm 4: 101.77405mm, 261.73753mm The number of the checkbox is here ...

1

The ~ character will work fine if used inside \url{} or \hyperref{} within your text because they automatically disable all the TeX parsing; as described by Martin Scharrer. The same is true for other characters like _ and for the \path{} command provided by the url package. But if you have a URL within your bibliography’s .bib file it won’t work. The ...

1

You have got: source PDF target PDF The PDF format is a box and I have no idea how you produce this source PDF. My guess is that the source PDF contains the graphs in a format which can not be used directly by pdfLaTeX, but "fortunately" there is a background software included in your TeX-installation, which produces a large jpg or an eps file from your ...

0

You can have the matrix within the page margins with the default layout (10 pt) and the geometry package, which widens the default text block, if you use the medsize environment (from the nccmath package). This environment makes formulae ~80 % of \displaystyle and if you reduce the value of \arraycolsep: \documentclass{article} \usepackage{mathtools, ...

4

Given the complexity of the elements in the matrix, your readers may appreciate if you list the elements one by one, in a list-like manner: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{align} \rho H &= \begin{pmatrix} a_{11} & a_{12} & a_{13}\\ a_{21} & a_{22} & a_{23}\\ a_{31} & a_{32} & a_{33}\\ ...

6

Problems such as this are almost always best fixed by improved notation. \documentclass[12pt]{report} \usepackage{amsmath} \begin{document} \rho H = \begin{pmatrix} \rho_{11} \hbar \omega_{1} +\rho_{13} \hbar k_p & \rho_{12} \hbar \omega_{2} + \rho_{13} \hbar k_c & \rho_{11} \hbar k_p + \rho_{12} \hbar k_c + \rho_{13} \hbar ...

17

Here is a possible solution via TikZ: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \newcommand\mybox{% \begin{tikzpicture}[remember picture] \draw (0,0) rectangle (.6em,.6em); \path let \p1=($(.3em,.3em) - (current page.south west)$) in \pgfextra{ \pgfmathsetmacro\xpos{\x1/1cm} \pgfmathsetmacro\ypos{\y1/1cm} ...

32

Use \fbox{% \pdfsavepos\write-1{hello is at \the\pdflastxpos,\the\pdflastypos}% hello% } and the log file will have the coordinates in scaled points The above produces a line such as the following in the log file: hello is at 10005380,43282099

1

There are several problems from (plain or primitive) TeX point of view when creating PDF outlines. The primitive level depends on used machine. For example, in pdfTeX, you have to use \pdfoutline primitive but when you plan to process dvi to pdf (for example in XeTeX), then there is \special{pdf:outline...}. It means that you need to implement a low level ...

0

Try PDFfiller.com. It allows you to add logo and pics to pdfs without a problem. http://goo.gl/anNWbq Its not very expensive and I think you can get a free trial if you ask for it.

0

gs -o /dev/null -sDEVICE=bbox Input.pdf yields %%BoundingBox: 0 0 702 399 \includegraphics[bb=0 0 702 399]{Input.pdf}

2

The technique given in this answer solved my problem quite nicely. I created a file called 10pitch.map that contains the following lines: pcrr8r Courier10PitchBT-Roman " TeXBase1Encoding ReEncodeFont " <8r.enc <c0419bt_.pfb pcrr8rn Courier10PitchBT-Roman " .85 ExtendFont TeXBase1Encoding ReEncodeFont " <8r.enc <c0419bt_.pfb pcrro8r ...

6

I recommend using the navigator package, which works with LaTeX, ConTeXt and Plain TeX. Outlines are created with \outline[<options>]{<level>}[<name>]{<title>} where <options> is fairly self explanatory, <level> is a number representing how deep in the hierarchy the outline is, <name> is an internal name used to ...

2

You could use the 'ASCII' circumflex provided by textcomp: \documentclass{article} \usepackage{amsfonts,textcomp} \usepackage{hyperref} \begin{document} \section{\texorpdfstring{Section $\mathbb{R}^k$}{Section R\textasciicircum k}} Blah blah \end{document}

2

OK. I compiled and installed TiKZit in order to retrieve the rest of the default preamble. The only thing I don't know is what the definition of newstyle should be. I guess this is your own. Here, I've just made it the same as simple but in green rather than black. \documentclass{article} \usepackage[svgnames]{xcolor} \usepackage{tikz} ...

3

You need to declare the layers and the two missing styles. Not sure what the style defintions should be so I just set them to draw thick lines: Code: \documentclass{article} \usepackage{tikz} %% -------------------------------------- Declare the layers \pgfdeclarelayer{nodelayer} \pgfdeclarelayer{edgelayer} \pgfsetlayers{edgelayer,nodelayer,main} %% ...

7

Here is the solution using \pdfxform: \setbox0=\hbox{\colorbox{yellow}{\phantom{X}}} \pdfxform0 \mathchardef\myboxnum=\pdflastxform \def\mybox{\pdfrefxform\myboxnum} \count255 4000 \noindent\loop \mybox\ \advance\count255 by -1 \ifnum\count255>0 \repeat The uncompressed PDF (\pdfcompresslevel=0) from your MWE has 673757 bytes and the same using ...

4

Well, this is 'tricky'. Page names are page labels in the sense of PDF. One has to insert a PageLabels object into the pdfcatalog and enable pdfpagelabels=true for the hyperref package. There a label prefixes, specified with the PDF command /P -- here set to 'Cover' The syntax is as follows /Nums[ 0 << /P (Cover) >> 1 << /S /D ...

1

If you are open to using Python this may suffice. I use python with the pyPdf and urllib2 packages. The logic goes like this: Open a pdf with pyPdf.PdfFileReader and loop through it. In the function below, pdf is the open pdf file object. def get_urls(pdf): badurls = list() links = list() url_checker = URLChecker() # a helper function to test ...

2

I had the same problem, using a portable version of MiKTeX and TeXmaker on USB. It worked fine on my laptop (Windows 8.1) but then it stopped compiling and generating new PDFs on my work PC (Windows 7). When I deleted the old PDF file, it told me File not found, even though I had tried to compile a new one. For me, the simple solution was to got to Options ...

7

If you want to do this in a discreete and hard to alter fashion, I would suggest having an image in your PDF, in which you hide the information you want using steganography (which uses low order bits in the image pixels). You can then extract said image again when given a distributed version and look at the pixel values to decode the information hidden.

2

If I run pdfinfo -box on a PDF file generated by pdftex, I get the following information: Creator: TeX Producer: pdfTeX-1.40.15 CreationDate: Mon Oct 6 16:01:48 2014 ModDate: Mon Oct 6 16:01:48 2014 Tagged: no Form: none Pages: 1 Encrypted: no Page size: 595.276 x 841.89 pts (A4) (rotated 0 ...

23

PDF information entries Additional entries can be set by hyperref, e.g.: \hypersetup{ pdfinfo={ User={John Doe}, % ... }, } Some PDF viewers are not able to show non-standard entries, but others do (AFAIK newer AR/Win versions). Adding data to the PDF data structures A key value pair can be put into a dictionary, e.g.: \pdfcatalog{/User ...

6

Probably you are using the wrong input encoding. In applemap.def, the \dag is produced by input code 160 (hex: 0xA0): \DeclareInputText{160}{\dag} But 0xA0 is "non-break space" in ISO-8859-1/latin1 or ISO-8859-15/latin9. Check, that you use the correct input encoding option for package inputenc. If the dagger is indeed coming from "non-break space", ...

4

As far as the yellow LyX notes are completely lost in the generated LaTeX source (i.e, the .tex file), your goal seem impossible without touching the LyX's guts or deal with the original .lyx file. An easier starting point could be use the black comments for this purpose. With this approach, you only have to transform a \begin{comment} note \end{comment} ...

1

I think that the best method to convert PDFs to eps files is to use a conventional PDF reader (Acrobat or Okular) to print the PDF to a file with the extension eps. More specifically, I used the usual option "print to file" available in the print dialog window and changed the extension of the destination file to eps. I tried it and it works very well and ...

0

In Linux (Mint 17) a (semiautomatic) trick that worked for me is, first extract the page with the desired vector figure using pdftk: pdftk book.pdf cat 51 output page.pdf in this case, the page 51 from the file book.pdf is extracted into the file page.pdf . Then using Inkscape, it is possible to open the file page.pdf, select the figure, copy and paste ...

1

This is based on dgoodmaniii's answer but uses XeLaTeX to select system fonts. I don't have Century Gothic so I've substituted fontconfig's choice. I've also used \newcommand* rather than \def since this is a LaTeX document. The example shows that the weight of the name remains constant. The fontspec facility to scale a font to the surrounding text size is ...

1

TeX is a macro language, so yes, this is absolutely possible, even easy. I don't happen to have those particular fonts available to me at the moment, but here's a rough-and-ready example using Computer Modern Sans and Computer Modern Serif, just to show how simple using two separate fonts is. I've selected those fonts in a generic way to show how you'd ...

5

I do not know how to make it difficult to copy text from a PDF fike, however, here is an easy way to put the purchaser's name onto each page: This is using the background package, which is one of the options suggested by Jon in the comments. \documentclass{article} \usepackage{mwe} \usepackage{background} ...

2

Synctex is a bit frizzy about file names and paths. On some systems it may not like non ascii letters in file names or paths. In order to test, create a folder called, say, latex-test in the root, i.e. c:, copy your file there and see if synctex works.

2

You can export them in any format you want that is understood by Inkscape and doesn't destroy the text information. So no export to any pixel format like png or jpg. Then you can import your image in Inkscape and export it as "PDF+LaTeX": From version 0.48, Inkscape has a special PDF+LaTeX output option. All lines and shapes are saved into a PDF file, ...

Top 50 recent answers are included