# Tag Info

0

On Linux the following will process all .lyx files in the current folder: for i in *.lyx; do lyx -e pdf2 "${i}"; done Or if you want to get fancy, you can process them in parallel with GNU parallel: ls *lyx | parallel --gnu -j3 lyx -e pdf2 {} Note that "pdf2" says to export to PDF with pdflatex 0 No. You have to remove the password from the PDF to be able to handle it with XeTeX/pdfTeX/LuaTeX - no program in the TeX "universe" handles password-protected PDFs. 3 For windows, (untested, I don't have any lyx files), make a batch file mylyx.bat with following contents: @ECHO ON CD /D %~dp0 SET Program="lyx.exe" for %%A in (*.lyx) do %Program% --export "pdf2" %%A Pause This assumes that lyx.exe is in system path. Put the batch file in the samr folder as your lyx files and double click. 0 By shrinking the code to an MWE, an unprocessed-floats error came up. Using a for-loop for multiple invoking of the same tikz, the error shows up after the 18th iteration (image). After including the morefloats package it was solved and successfully tested up to 30 images. 7 (Importantly, this does not work with XeTeX. I mostly tested using pdfTeX, but things also seem to work in LuaTeX.) In a pdf file, colors of an included image can be affected by a /Decode array. This is accessed via the decodearray keyword of \includegraphics. However: this fails in some cases when the color model is cmyk; and this does not allow to ... 8 In addition to getting latex to write the strings as unicode you need to set up the pdf to use unicode metadata rather than the original PDF string encoding Without the uniocde option, Hyperref can do most of the characters but warns Package hyperref Warning: Composite letter `\textasciicaron+C' (hyperref) not defined in PD1 encoding, ... 7 The problem of the OP was already solved by Stephan Lehmke in a comment. It was as simple as a typographic error, (a y changed by a j). I have to say that I was unable to see the error, although it was the first thing which I thought, and I inspected carefully the two strings, failing to see any difference (?). So, trying to discover what the problem was, I ... 11 What you see is not the completely un-compressed PDF. To get such, you will have to say \pdfcompresslevel=0 \pdfobjcompresslevel=0 There are two different levels of compression according to the PDF specification. The first one, controlled by the value of \pdfcompresslevel in the pdftex driver, deals with the content streams of page objects, XObjects, ... 11 Very naive, but easy to generalize. Final definition should have two parameters and take maximum of two lengths. \documentclass[11pt]{article} \usepackage{color} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \begin{document} \newlength\eyja \settowidth{\eyja}{Eyjafjallajökull} In a dictionary a headword can consist of special characters ... 11 accsupp does allow for this: \documentclass{article} \usepackage{accsupp}% http://ctan.org/pkg/accsupp \begin{document} \BeginAccSupp{ActualText=Eyjafjallajokull} Eyja$\cdot$fjalla$\cdot\cdot$j{\"o}k$\vert\$ull \EndAccSupp{} \end{document} While the selection might not be as expected, the search works (in Adobe Reader, at least).

1

You should be able to include by using \includegraphics{{/rdata/report/images/buckets.data.csv}.png} The curly braces isolate the correct extension - it hides the other dots from LaTeX.

0

EDIT: If the soundcloud player provides a Download button for the MP3 file (see e. g. https://soundcloud.com/explore) , the sound can be played back in APlayer.swf from the media9 package: \documentclass{article} \usepackage{media9} \begin{document} \noindent\includemedia[ transparent, flashvars={ ...

2

The solution for png and jpg is: https://github.com/zerotoc/pdfinlimg. haven't found one for pdf (yet). (Thanks for pointing me into the correct direction, Jake!)

0

I am not sure what exactly you are using, but the command XeLaTeX+MakeIndex+BibTeX in TeXworks (at least my configuration) actually calls texify instead of miktex-pdftex, so the option needs just a small addition. Based on this: How to use PSTricks with PDF Texify in WinEdt? Add the desired option as following: --tex-option=--enable-write18

9

(it seems this works everywhere apart from acrobat reader) This is based on the example by @DavidCarlisle. The cmtt visible space character seems to be labelled differently in different cmtt variants. For cm-super (which is loaded here when I use \usepackage[T1]{fontenc}), the respective character is named uni2423 which seems to cause problems with evince ...

5

I can confirm this issue on OS X with Adobe Acrobat X. All other, PDFKit-based PDF viewers (Skim, Preview, IDE-integrated viewers) work fine. A simple, but in my experience always working workaround with problematic PDFs is to sanitize them via conversion to PS and then to PDF1.3 (which basically rasterized some fading and transparency effects): pdf2ps ...

13

The problem is that you're using rand which generates random numbers between -1 and 1, instead of rnd, which generates random numbers between 0 and 1. This leads to some of the lines having a negative width, which throws Acrobat off. Replacing the rand with rnd fixes the problem: \documentclass[tikz]{standalone} \usepackage{tikz} \usetikzlibrary{fadings} ...

1

It seems this plot uses a fixed aspect ratio, so you have to follow that ratio to avoid clipping, for example, when the plot is too narrow. After some testing, a width/height ratio of 9:7 seems appropriate in this case. You can adjust the figure width/height according to this ratio, e.g. fig.width = 6, fig.height = 6 * 7/9. <<test, fig.width=9, ...

8

The following doesn't work in evince, see the discussion in comments below As noted in comments I suspect using colour is the most reliable way: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{color} \begin{document}\showoutput \makeatletter \def\@xobeysp{\textcolor{white}{\char32}} \makeatother \begin{verbatim} def myfunction(x): return x ...

5

Edit the LyX file directly. It is a text file. Then run lyx -e pdf2 yourfile.lyx to produce a PDF file using pdflatex.

3

You can simply put \maketitle inside the titlepage environment to obtain what you want: Code (I've also added a \vfill before \today assuming that you want it at the bottom of the page): \documentclass[twocolumn]{revtex4-1} % use prl for onepage \usepackage{pdfpages} \usepackage{amsmath, amsfonts, amssymb, textcomp} \usepackage[T4, OT1]{fontenc} ...

4

pdfpages can be used to embed PDFs in a document and to add entries to the ToC. Assuming you have a file kant.pdf, which you want to embed in your main file, you could do so by calling includepdf with the following parameters: \includepdf[% pages=-, addtotoc={% You can add more than one entry to the toc 1, % page ...

3

I don't understand exactly what you want to achieve, so there are two parts to this answer. pdfpages This technique will let you distribute all the pages of a PDF across as many pages as necessary of a LyX document. I don't know if it's possible to add notes within LyX next to each page/slide, for that purpose the other technique (see below) would be ...

2

Not really. In theory you can parse the content stream of included PDFs with Lua code in the latest versions of LuaTeX and you could probably also modify the content stream (thus changing the line width), but I don't think anybody has tried that yet.

3

Here is an implementation using environ and expl3. With environ we absorb the whole environment's contents and with l3regex we check whether the environment contains the tokens \label{table_ via the regular expression \c{label}\cB.table_ Where \c{<string>} matches the control sequence with name <string> and \cB. matches one open brace. ...

1

Burst the PDF file into seperate PDFs (one per page) and include them as an image to your document separately. Insert page breaks if needed. For example, if you have pdftk installed, you can run the following command in the terminal: pdftk yourSlides.pdf burst This will create a couple of files "pg_0001.pdf", "pg_0002.pdf", etc., which you can include ...

2

I have a different method using "Ghostscript" and "GeoGebra" Extract pages file in two different formats (pages 5 to 10): gs -sDEVICE=jpeg -dNOPAUSE -dBATCH -dFirstPage=5 -dLastPage=10 -sOutputFile=figure-%d.jpg input.pdf gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dFirstPage=5 -dLastPage=10 -sOutputFile=figure-%d.pdf input.pdf we have the files: ...

1

The LaTeXTools plugin invokes the viewer from viewPDF.py. Line 39 to 44 is the code which is selecting the commands to invoke when running on OSX: if s == "Darwin": # for inverse search, set up a "Custom" sync profile, using # "subl" as command and "%file:%line" as argument # you also have to put a symlink to subl somewhere on ...

4

You can use the following code to determine the viewport to trim anything outside. % cropper.tex \documentclass[preview,border=12pt]{standalone}% remove border option to get a tight output \usepackage{pstricks} \def\M{10}% columns \def\N{10}% rows \def\scale{1}% scale \def\filename{example-image-a.pdf}% filename \def\page{1}% page \usepackage{graphicx} ...

5

graphicx is able to add only one page from a PDF file and to trim it. \documentclass{article} \usepackage{graphicx} \begin{document} Some text \includegraphics[ page=15, trim=14.8cm 5cm 1cm 21cm, clip ]{../calcolo/trigonometria/trigonometria.pdf} Some other text \end{document} This is the original page: Some trial and error in determining ...

2

To expand on what others said: This back functionality has nothing to do with TeX because you wouldn't encode the back link (from the link destination back to the link source) in the PDF document itself. Rather, the functionality is built into the PDF viewer; when you click a link, taking you to a different page in the PDF document, the PDF viewer remembers ...

Top 50 recent answers are included