Tag Info

New answers tagged

0

You can try to find a spiral symbol in the comprehensive LaTeX symbol list (I haven't found any, but I didn't look very thoroughly): Note that the font that you use in the LaTeX document should contain this particular character. I don't think this is the case...


0

General Test setup for performance comparison I've set up a test file which uses the biblatex-examples.bib References included in TeXLive 2014. It cites each reference 10 times (not very elegant, but it works). Results: with biber backend If I cite each source only 1 time (instead of 10), it takes 29 seconds for the whole script to run with biber (3x ...


0

As stated by Andrew Swann in his comment above (thanks a lot!), biber is necessary as backend if UTF-8 is used, so the solution is the option backend=biber


1

It seems that using backend=biber is causing the amazing slow down, I've asked a new focused question here to discuss this issue: Why does biber increase compilation time (pdflatex) dramatically? Performance comparison biber / bibtex8: Test setup my LaTeX document, limited to one long chapter by \includeonly, 98 pages with many many references, ...


5

In absolute terms utf8 does slow down the processing as (if you have any non ascii characters) you have to handle 2 (or more) bytes rather than 1, and it can not possibly take less time to process two bytes than 1 byte. But unless you have millions of non-ascii characters and your document does nothing but write them out to files and read them back in ...


2

OK, I was missing two things: I had to install GNUPlot (sudo apt-get install gnuplot) And enable write18 with --shell-escape


2

I found the solution actually. By selecting the Font Style of Times Roman in MikteX by using package mathptmx And by selecting Label style in Mathematica as LabelStyle -> Directive[ FontFamily -> "Times"] worked for me.


1

If anybody in the future encounters the same problem, please read this: After a lot of trial, I came to the conclusion, that it is probably the best to use matlab2tikz or pgfplots. The link that @Dolphin posted in his comment leads to a handy extension of Inkscape, which fulfills its purpose. All the text in the Matlab figures got recognized. The problem ...


3

The background package documentation gives an example (Example 4) on how to proceed when different backgrounds are desired for odd and even pages; basically, you need the \AddEverypageHook hook and to use \BgMaterial at the end. Here's a reduced version of your code (your \scriptext and \striptextoutcommands were producing errors, so I suppressed them): ...


5

The Unicode reference is a red herring really, for pdftex you would need a classic (256 character) font that has such a character. There may be such a font but it is simpler really just to use a graphic. best would be a scalable image. If you have a system font with it in, make a small pdf, but a bitmap image also works, I just drew one. You can then define ...


1

You can use the adjustbox package: \documentclass{beamer} \usepackage{media9} \usepackage{adjustbox} \begin{document} \begin{frame} \begin{itemize} \item \begin{tabular}{p{5cm}l} some text here & \adjustbox{valign=t}{\includemedia[ activate=onclick, width=0.45\textwidth ]{\includegraphics{example-image}}{example-image}} ...


1

You can use the second () optional argument of picture to allow for your negative coordinates, but simpler is just leave a blank line after the picture and put \vspace{5cm} before the caption


0

I haven't either been able to find a quick answer to this issue. The following command-line code does not silence the issue, however solve it. It should be straightforward to understand and is general: find . -name "*.pdf" -type f -exec sed -i '\/Group <</,+5d' {} \; What it does: It recursively searches the current folder for .pdf files. In these ...


3

You're using \edef and \pageref cannot be used in this context, nor can it appear in \csname...\endcsname Avoiding full expansion will work, together with stringifying the first level expansion of \next when in \csname...\endcsname. \providecommand{\expandonce}{\unexpanded\expandafter} \makeatletter \def\removeduplicates#1#2{\begingroup \let\@tempa#1% ...


1

TexStudio works with Cygwin TeX Live using the following: Menu -> Options -> Configure -> Commands -> PdfLaTeX: "C:\cygwin64\bin\bash" -l "/cygdrive/c/users/porterb/pdflx.sh" Contents of pdflx.sh: pdflatex -synctex=1 -interaction=nonstopmode -output-directory=/cygdrive/c/users/porterb/data/home/tex -output-format=pdf ...


2

I read the documentation at PSTricks website on tug.org, and apparently using tikz and pstricks together is a common mistake. The author offers a workaround like this, for using pst-plot with tikz. For my particular example, I had to add \usepackage{auto-pst-pdf} \ifpdf \usepackage{tikz} \else \usepackage{pst-optexp} \fi right after the ...


4

Your output looks as if the pdflatex executable is broken. It doesn't load the format. pdflatex.exe is only a small wrapper for a call to pdftex and can be remade with initexmf (http://docs.miktex.org/2.9/manual/initexmf.html). So try on the command line initexmf --admin --force --mklinks (if you have only a single user installation leave out the --admin).


1

I had a personal path configuration in the preferences options. In removing these variables, everything is back in order.


0

For me I simply had to copy the .fmt file into the directory the PHP file was calling it from. It worked fine from a terminal but gave the error when running via PHP.


2

I'm not sure what warnings you want to suppress, but the way you chose is quite complicated and fragile (which is the reason for the failure with \subfloat). Here's a version using xparse that makes checking for optional arguments very easy. I also add a + variant (to be specified before * if you need both) that doesn't execute the “enabling/disabling ...


3

There is no need for a redefinition, this works without error: \documentclass{article} \usepackage{graphicx} \usepackage{subfig} \begin{document} \begin{figure}[t] \centering \includegraphics[width=.7\linewidth]{example-image} \caption{This is a working test image.} \end{figure} \begin{figure}[t] ...


0

It doesn't seem that there is a way to prevent the warning showing up directly. One work-around would be to use the silence package to filter out the warnings from the output. However, silence doesn't detect these warnings as they're generated using \@warning{File `#1' not found}%` (line 166 of graphics.sty) and silence only picks up warnings generated ...


0

This worked for me: launchctl setenv PATH /usr/texbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin


5

If you add \pdfcompresslevel=0 To the top of the document then you get filesizes of 3129555 and 13642 with and without hyperref. Looking in the pdf the first obvious difference is 26368 occurrences of the identical line /D [3 0 R /XYZ 88.291 795.961 null] which as far as I know is setting a named destination at those coordinates. That on its own ...


1

This might be considered 'bad latex', but i've made some arrows bold by just putting in a few on top of each other. \xymatrix{ & A \ar[dl] \ar[dr] & \ B \ar[rr] \ar[rr] \ar[rr] \ar[rr] & & C} gives sorry if that isn't the most helpful but at least works as a temporary solution/last resort.


1

I hope not coming too late… About your second question, I use two solutions regularly to integrate MetaPost code directly into a LaTeX document. The first method is using the gmp package already mentioned by dgoodmaniii. \documentclass{article} \usepackage[shellescape]{gmp} \begin{document} \begin{mpost*} beginfig(1); $ := 1; for i = -.3cm step .6cm until ...


3

Here is the compilable code: \documentclass{article} \usepackage{amsmath} \usepackage[framemethod=TikZ]{mdframed} %% the following is commaon for all examples in mdframed manual \mdfsetup{skipabove=\topskip,skipbelow=\topskip} \newrobustcmd\ExampleText{% An \textit{inhomogeneous linear} differential equation has the form \begin{align} L[v ] = f, \end{align} ...


0

As you are using TexnicCenter, the solution is to add two (or even three, if you use booktables for example) additional compilations. Just define a new profile (as copy of your currently used profile) and edit it. In the post-execution tab you add two (or whatever number of additional compilations you need) tasks, and in each of your task you copy the ...


3

Thanks to @UlrikeFischer, this is now solved; the answer was: Replace in (a local version of) T1-WGL4.enc one of the char names (e.g. /cedilla) by the char name you want to test (looks like /uniE025) and then look what happens. If you can see the glyph you will have to create a suitable tfm-file too. That's exactly what the embedded bash code does now: ...


1

I just had a problem with this, and answers by @UlrikeFischer and @RD6137 are essentially correct, but I'll post a writeup here; although I'm not sure about the Hangul characters per se, I'll be focusing on "Unicode characters" and "hexcode" part of the question; all of this was tested with pdflatex. No German Umlaute or Eurosign - that's simple. ...


0

I have spent a considerable amount of time to find why I suddenly get errors with TeXshop 2014 when mixing English, French and Romanian text. Romanian text was OK but French accents always gave errors. The reason was that I have put {inputenc} before {fontenc}. The following order ensures it works as expected and I can type French and Romanian accents ...


2

You have to pass to GraphViz the string \| The easiest way is to define a \pipe command \documentclass{article} \usepackage[pdf]{graphviz} \edef\pipe{\string\|} \begin{document} \digraph[]{junk}{ node [shape=record]; n1 [label="{ A | B\pipe C }"]; } \end{document} More complicated, but allows typing \|: \documentclass{article} ...


3

This places the rule in the top corner. I added \noindent so that it wasn't shifted to the right, removed the "by eye" vertical adjustments and added a negative space of exactly \vspace*{-\dimexpr\topskip+\topmargin+\lineskip\relax}% before the rule. \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesClass{techclass}[2015/02/08 v0.1 ^^J LaTeX document class for ...


0

replace \setlength\voffset {8mm} \setlength\topmargin {-1in} by \setlength\voffset {8mm} \setlength\topmargin {-1in} \addtolength\topmargin {-8mm} in your place i'll never change \voffset and \hoffset you can try with \setlength\topmargin {-1in} \addtolength\topmargin {+-something} \setlength\oddsidemargin {-1in} \setlength\evensidemargin {-1} ...


4

You cannot use optional arguments for bookmarks, because LaTeX's implementation uses \futurelet, which is not expandable. Bookmarks strings are not typeset by TeX, only converted to a string. Since the macro with the optional argument does not have a following mandatory argument, there is no way detecting the optional argument using a macro-based approach. ...


1

The PDFExpress error message is about the Acrobat version, not the PDF version. This, of course, is misleading, but in fact means that PDFExpress wants PDF version 1.4, as 5 = 1 + 4. For a long time Acrobat and (Acrobat) Reader had followed a simple and deterministic rule for their version number: The Acrobat version is the sum of the major and minor part ...


1

The following will give a PDF 8.00 inches high, 5.25 inches wide. Not sure what else you want to do as far as margins go, but it's a start. References include the memoir manual, chapter 2 "Laying out the page", with a summary of steps in section 2.6 "Putting it all together". The preview below is of a two-page view, but each page is sized correctly. ...


6

Use multicols* \documentclass {article} \usepackage{multicol} \usepackage{lipsum} \begin{document} \begin{multicols*}{2} \lipsum[1-2] \end{multicols*} \end{document}


1

Y'all are great! I'm sorry about not posting how I derive myStuff@filename. Should I re-edit the original question? We're using either MikTeX 2.9 or 2.3 (trying to phase this out) Not using quotes was the problem. \Verbdef from newverbs also works. Here's an example of the bad code: % The following actually writes to 'my.tex' \renewcommand\TestFilename{my ...


5

The referenced code uses \symbol, the definition of which ends in \relax so suppresses ligatures with following but not preceding characters. using an example that can be run: \documentclass{article} \begin{document} \showoutput 1 ff 2 f\relax f 3 \symbol{`f}f 4 f\symbol{`f} \end{document} produces ....\OT1/cmr/m/n/10 1 ....\glue 3.33333 plus 1.66666 ...


4

You could, if you wished, do something like this. I'm assuming you are switching to sans-serif font and that the symbol is required in this context. So CM Sans is a better option than CM Roman. \documentclass{article} \usepackage{textcomp} \usepackage{helvet} \let\oldtextcolonmonetary\textcolonmonetary ...


1

I'm posting here the final "solution" (you'll understand the quotation marks later), found through a chat conversation, as reference for other users which (unlikely) could face the same issue, and to document some strategies for debugging this kind of problems. The main suspect here was the value of the PATH variable "visible" by the shell which pdflatex ...



Top 50 recent answers are included