title: Non break space between figure and caption for figure float h

text: I'm currently creating a two columned article. My document class is given by:               \documentclass[10pt, aps, prb, twocolumn]{revtex4-1}      In my article I would like to include figures. The way I do this is the following:               \begin{figure}[h]     \centering     \includegraphics[width=1.0\linewidth]{Figures/Figure 4.pdf}     \caption{Figure caption \label{fig:Figure_4}}     \end{figure}      The package I use for the figures is:               \usepackage{graphicx}      Note that I use the figure float `h`. This enables me to place the figure basically exactly where I want. The problem however is that it is now placed such that the figures is on the lower left side of my two columned article whereas the caption of this figure is at the upper right side on the second column. How can I ensure a non break space between figure and caption when using figure float `h`? Here is a minimal example that replicates the problem: ![enter image description here](http://i.stack.imgur.com/5hSo1.png)               \documentclass[10pt, aps, prb, twocolumn]{revtex4-1}     \usepackage{graphicx,lipsum}          \begin{document}          \lipsum[2]\lipsum[2]\lipsum[2]     \begin{figure}[h]       \centering       \includegraphics[width=1.0\linewidth]{example-image}       \caption{Figure caption}     \end{figure}     \lipsum[2-5]     \end{document}


title: Hyperref link spanning two lines

text: in my tex source file I have a link like that:               \href{http://en.wikipedia.org/wiki/Warm_dark_matter}{Warm      Dark Matter}      This link starts on one line and ends on the next line. The problem is that when I compile it like `latex -> dvips -> ps2pdf`, I see "Warm Dark Matter" colored, but can't click on it to open the link. When file is compiled with `pdflatex` everything is fine, so what can be the problem in the first method? I can't move link in one line because I have automatic tex-processing system.


title: How to use Rubber With Makeglossaries?

text: Is there a way to use rubber with `makeglossaries`? I found a solution for the simple case. You have to add the rubber directive to the latex document, in that case `myDoc.tex`.               % rubber: onchange myDoc.glo 'makeglossaries myDoc'      But when you want to use links to glossary entries in the acronyms descriptions, like in this example:               \newglossaryentry{test}     {       name={test},       description={big description of the test)},     }     \newacronym[description={\gls{test}}]{t}{t}{test}          \gls{t}      You have to compile it more often (see `glossaries` manual, p.16):               latex myDoc     makeglossaries myDoc     latex myDoc     makeglossaries myDoc     latex myDoc      I played a little bit with the rubber directives and rules, but can't get it to work. Has anybody else an idea?


title: biblatex backref – how to add spaces around the dash?

text: I am using `biblatex` with `backref=true`, which generates ranges as e.g. `34–37`. How can I make it e.g. `34 – 37`? The spaces should be non-breakable. I have tried to redefine `\bibrangedash`, but with no success.


title: Define Macros depending on argument

text: I'd like to draw some linear Systems with tikz. The problem is the orientation of the Systems. Some have   * input on left - output on right   * input on right - output on left   * input above - output below   * input below - output above So to handle all the variations with a single \command, i'd like to use the arguments   * ud (up down)   * du (down up)   * lr (left right)   * rl (right left) So what I need is a switch in Latex to define the Orientationparameter. pseudocode:               \drawSYS{Text}{lr}          Command: drawSYS      \switch #2       \case 'lr'        \def\ORIENTA left        \def\ORIENTB right       \case 'rl'        \def\ORIENTA right        \def\ORIENTB left        ....      \endswitch      \node[anchor=\ORIENTA,\ORIENTB=1cm] () {foobar};      Is this even possible in Tex? Thanks for your help.


title: Typesetting email with internet-style quoting using LaTeX?

text: I'm wondering if there exists a package, that would take so-called Internet- Style Quoted plain text of an email, and format it accordingly for a PDF output. Internet-style quoting is discussed on the Wikipedia page Posting style; so let's say I take an example from there, and I have the following to be the content of `email.eml` file:               At 10.01am Wednesday, Danny wrote:     > At 9.40am Wednesday, Jim wrote:     >> I'm going to suspend the mail service for approx. thirty     >> minutes tonight, starting at 5pm, to install some updates     >> and important fixes.          > Whoa!  Hold on.  I have a job scheduled at 5:30 which mails out     > a report to key tech staff.  Could you push it back an hour?     >     > By the way, which systems will be updated? I had some network     > problems after last week's update.  Will I have to reboot?          No problems. 6pm it is then.          Basically, I will update our WWW server and firewall.     No, you won't have to reboot.      Then, I'd imagine one could prepare something like an `email.tex`, which I could use to obtain a formatted PDF:               \documentclass{article}     \usepackage{???}          \begin{document}          \begin{QUOTEDEMAIL}     \input{email.eml}     \end{QUOTEDEMAIL}          \end{document}      I would be hoping that I'd at least have the control of choosing the color (grayscale) for the different levels of quoted replies (lines prefixed with '`>`')... But, if I can also control, say, fonts - or rendering lines instead of the '`>`' (like what Thunderbird does), that would be awesome! :) Well, does anything similar to this exist?


title: Latex Table in Exam Class

text: I'm trying to add Question Type : Match the Pairs using EXAM Class use code mentioned below : [FYI: I'm converting HTML Table into Latex table. I'm using pdflatex to get pdf from tex file mentioned below.]               \documentclass[addpoints,answers,10pt]{exam}     \usepackage[T1]{fontenc}     \usepackage{graphicx}     \usepackage{tabularx}     \usepackage{nonfloat}     \usepackage{caption}     \usepackage{amsmath,amssymb}     \usepackage{lmodern}     \usepackage{textcomp}     \usepackage{ifpdf}     \usepackage[export]{adjustbox}     \newenvironment{Figure}       {\par\medskip\noindent\minipage{\linewidth}}       {\endminipage\medskip\par}     \marksnotpoints     \bracketedpoints     \pointsdroppedatright     \qformat{Q. \thequestion: \thequestiontitle\hfill\thepoints}     \renewcommand{\thesubsubpart}{\arabic{subsubpart}}     \renewcommand{\thechoice}{\arabic{choice}}     \runningheadrule     \pagestyle{headandfoot}     \runningheader{Competitive Examination}{}{}     \firstpagefooter{}{Page \thepage}{}     \runningfooter{}{Page \thepage}{}     \footrule     \renewcommand{\thepartno}{\Alph{partno}}     \begin{document}     \begin{center} {\centering \textbf{\Large{Dummy Value}}} \end{center}     \small{ABCD1234} \hspace*{\fill}     \small{TERMINAL EXAMINATION} \hspace*{\fill}     \small{Marks: 60}     \newline     \small{SSC-SET1} \hspace*{\fill}     \small{Science (Ch - 1,2,3)} \hspace*{\fill}     \small{2\textonehalf Hours}     \newline     \noindent\makebox[\linewidth]{\rule{\textwidth}{1pt}}      \begin{center} {\centering \textbf{SECTION A}} \end{center}     \begin{questions}     \titledquestion{Match the Pairs}[10]     \begin{table}[ht] \begin{tabular}{l l l} \hline \hline       A &       B &      \\      \ 1) Why this text is dummy over here &       \ a) there is not dummy text &      \\      \ 2) THis is one word &       \ b) THis is not the correct word &      \\      \ 3) This is dummy value al dfadf adf adfasdf \ ddfakdfaasdf .\  &       \ c) values are here for all fasdf ad asdfasdkfad.\  &      \\      \ 4) asd fads adsfkaj dkladjsflkadsf asdfa skdlj, asdfasdasdfasdfa &       \ d) adjfklasd fasldfjasdlkfjasdlkfadsflkja sdflkjasd;lfkjasd;lfkja;sldkfjals;dk\  &      \\      \ 5) asdfasdfjas;dlfkjaslkdalkdsjf;alksdjfasdklfads &       \ e) adjfklasdjfa;lksdjf;alskdjf;alskdjf;alksdjf;laksdjf;alksdfj;alksdfja;lksdfja;lksdfja;lskdfj;alksdjfalksdfjasdklfjas;dlfja;sdlkfalkdjfa;lkdsjf;alksdfaldfja;lsdkfja;lsdkjf;alskdfj;aldkjf;alksdjfalksddddddfajsdlkfja;lsdkjf ;alsdjf ;asdjf; ajdf;l j;asdlfj ;alkdjsf;laksejriaeidkl ja;dlkfja;slkdfj a;ldskfja;sdikdfka dof asdf asdfk;lajsd;flkaj d;lkfajsd;lfk ja;dsfj ;alskdjf; lkadsjf;alksdjf; alsdfkja;lskdjf;alsdjf;alsdkjf;alskdjf\  &      \\     \hline \end{tabular} \label{table:nonlin} \end{table}      \end{questions}     \end{document}      Generated output is mentioned below ![enter image description here](http://i.stack.imgur.com/TuMgK.png) I'm facing two problems in this code :   * Match the pair table is coming above question title    * If there is longer word or more text, it's going outside pagewidth Can you please give me direction to solve these errors?


title: Suppress library comments from ouput with knitr

text: I noticed that some library comment manage to pass through the `knitr` options, with `R 3.0.1` and `knitr 1.5` running on Mac OSX 10.8.5. The following MWE               \documentclass{article}          \begin{document}          <<libraries, echo=FALSE, cache=TRUE, warning=FALSE, results='hide', cache.lazy=FALSE, message=FALSE>>=     library(memisc)     1+1     @          \end{document}      will still produce in the output ![enter image description here](http://i.stack.imgur.com/3mRg2.png) Is there any way to silence unequivocally and universally the libraries? NOTE: I think it could be an issue related to how `knitr` manage the warning messages from `R`. In this specific case the warning message was successfully suppressed but not the annotation preceding the message.


title: The bearing angle between two vectors?

text: What is the best way of showing the angle between two vectors defined by start and end points? E.g., Vector 1 points from point A to point B. Vector 2 points from point C to point D. I have tried:               $\angle (\vec{AB}, \vec{CD})$      But it is ugly. In addition, the abovehead arrowhead is not long enough to cap the long expression. How may I fix this?


title: how to draw a block/flow diagram for a code in tikz

text: I want to draw a diagram that shows how my program flows. I have a main routine that calls a few subroutines, which in turn call a few subroutines. Does a package exist which can show this hierarchy? I want to be able to configure the size of all the rectangles I draw. something like this ![enter image description here](http://i.stack.imgur.com/IPniT.png)


title: Overfull \hbox from printindex

text: I've got a `index` generated with `makeindex` but when compiling the file again, when the index is generated, I get a bunch of overfull `\hbox`. This is an example of an index that results in overfull:               \begin{theindex}       \item Type, 149, 155         \subitem GetProperties(), 127, 130, 135, 150     \end{theindex}      I don't want to change the .ind-file manually, I'm guessing that is the wrong approach; so what should I do here? I think that adding a `\newline` before 127 above would work, but as I said, I don't want to change this file directy. **Edit - Reproducing the error** Here is a sample to re-produce the error that I am getting, first you need the page "CreateSpace". Then I am using this code to generate the file:               \documentclass{book}     \usepackage[size=novel,trim=0,paper=white,preview=false,gutter=0.5in,inner=0.25in,outer=0.25in,top=0.75in,bottom=0.75in,geometryextra={twoside,heightrounded,truedimen},colourpackage=xcolor,colorpackage=xcolor]{createspace}          \usepackage{index}     \usepackage{lipsum}     \usepackage{courier}          \makeatother     \makeindex     \begin{document}          \index{A}     \index{B}     \index{C}     \index{D}     \index{E}     \index{F}     \index{G}     \index{H}     \index{I}     \index{J}     \index{K}     \index{L}     \index{M}     \index{N}     \index{O}     \index{P}     \index{T}     \index{U}     \index{V}     \index{X}     \index{Y}     \index{A1}     \index{B2}     \index{C3}     \index{D4}     \index{E5}     \index{F6}     \index{G7}     \index{H8}     \index{I9}     \index{J10}     \index{K11}     \index{L12}     \index{M13}     \index{N14}     \index{O15}     \index{P16}     \index{T20}     \index{U21}     \index{V22}     \index{X23}     \index{Y24}          \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \index{Type!GetProperties()}     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \index{Type!GetProperties()}     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \index{Type!GetProperties()}     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \index{Type!GetProperties()}     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \index{Type!GetProperties()}     \lipsum[1-50]     \lipsum[1-50]     \lipsum[1-50]     \index{Type}     \index{Type!GetProperties()}          \printindex          \end{document}      After that I run: `makeindex -s headings.ist MWE.idx` headings.ist contains the following:               headings_flag 1     heading_prefix "\\textbf\{\\large "     heading_suffix "\}"      If you now go to the end of the generated PDF, you will see that the index is out of the page margins: ![enter image description here](http://i.stack.imgur.com/rbN5U.png)


title: Set up vim, latex for AGU template

text: On a Mac, I have been using vim-latex for a while and had set it up a while ago to output pdfs via the `:ll` command in vim (using pdflatex if I'm correct) and viewing the output via the `:lv` command (using skim which refreshes automatically on change). This was very convenient for me to work with. Important detail: all my external figures were pdf. However hopefully I will soon publish some article(s) in an AGU journal, and started working with their template. They require eps format figures, which is not an issue in itself. But now obviously they do not render through the (probable) pdflatex compiling rule that I have been using so far. I would like to keep the same workflow capability (view output right away by typing `:lv` or a single command, and have the output refresh on change) while working with the AGU template, and the required eps figures. Which means (I think) I need to either set the right compilation rule, or to switch to another way of working. The vim-latex documentation for setting those compiling rules is quite complicated in my opinion, so any advice would be most welcome! [EDIT] I solved my problem by adding this in my .vimrc so that the compiling rule is dvi -> ps -> pdf and I have no issues with eps figures now :               let g:Tex_DefaultTargetFormat = 'pdf'     let g:Tex_CompileRule_pdf = 'ps2pdf $*.ps'     let g:Tex_CompileRule_dvi = 'latex --interaction=nonstopmode $*'     let g:Tex_CompileRule_ps = 'dvips -Ppdf -o $*.ps $*.dvi'     let g:Tex_FormatDependency_pdf = 'dvi,ps,pdf'


title: tikz pgfkeys error for isosceles triangle

text: I just got this message compile with pdflatex:               ! Package pgfkeys Error: I do not know the key '/tikz/isosceles triangle' and I      am going to ignore it. Perhaps you misspelled it.      I'm using fedora with texlive. What package am I missing?


title: Ligature suppression algorithm fails if the word in question contains an Umlaut (dieresis) before the ligature

text: This is a follow-up posting prompted by Taco Hoekwater's recent excellent answer to a question I posed a few months ago. It concerns the use of the ligature suppression algorithm for words (mainly, but not exclusively, German- language words) that contain _Umlaute_ (diereses). Taking Taco's MWE as the starting point (not reproduced below because it's quite long), add the instructions               \suppressligature{lffach}{lf|fach} %% no f-ligature in words containing the string "lffach"     \suppressligature{rflich}{rf|lich} %% ditto for words containing the string "rflich"     \suppressligature{mpfflug}{mpf|flug}      and the following six words (which all contain potential f-ligature glyphs):               elffach zwölffach                %% ff ligature to be suppressed     verwerflich dörflich             %% fl ligature to be suppressed     Kampfflugzeug Düsenkampfflugzeug %% ffl ligature to be replaced with f-fl      after `\begin{document}`. This results in the following output: ![enter image description here](http://i.stack.imgur.com/xSZDC.png) Notice that the three words which do _not_ contain an Umlaut before the `|` ligature suppression point are treated correctly, i.e., the `ff`, `fl`, and `ffl` ligatures are broken up in the manner indicated by the applicable `\suppressligature` commands. In contrast, ligature suppression _fails_ for the second set of three words -- apparently because they contain an Umlaut. This happens with words containing an `ä` Umlaut as well, by the way. Furthermore, I've determined that this problem _only_ appears to happen with words that contain an Umlaut _before_ the ligature suppression point. Words that contain an Umlaut _after_ the ligature suppression point indicated by a corresponding `\suppressligature` instruction are treated correctly. E.g., when supplying the instruction `\suppressligature{uflös}{uf|lös}`, the words `auflösen` and `Auflösung` are both rendered without the `fl` ligature. A word about my TeX setup: I mostly run TeXLive2011 and use TeXWorks as my editor program. However, the problem also occurs under MiKTeX2.9, with all the latest updates installed, and with WinEdt7.0 as the editor. Both editors are fully unicode-aware. **Question** : How does Taco's code need to be edited/modified to circumvent the problem(s) described in this posting?


title: Right arrow without italics

text: How can I print a `\rightarrow` or `\Rightarrow` (I really don't care, I just want an arrow...) without the following words being in italics? This sentence added for grammar control.


title: Undefined control sequence when using \setupinteraction and \externalfigure

text: When I use `\externalfigure` after `\setupinteraction[state=start]`, I get an error message about an `Undefined control sequence`. Here is a minimal working example (filename `prob.tex`):               \starttext     \setupinteraction[state=start]     \externalfigure[star]     \stoptext      where `star.pdf` is a small PDF file (and has no known problems). Now when I call ConTeXt on it (Mk iv):               $ context prob     [...]     system          > tex > error on line 4 in file prob.tex: Undefined control sequence ...          1     \starttext     2     \setupinteraction[state=start]     3     \externalfigure[star]     4 >>  \stoptext      By contrast, if I comment out the `\setupinteraction` command (or set e.g. `state=stop`), it compiles fine. It also compiles fine if I remove the `\externalfigure` command, which is what makes me believe that the _combination_ of the two commands is necessary to cause the error. What am I doing wrong (or is this expected)? I'd like to have interactive links in the PDF, hence the `\setupinteraction`. Thanks in advance! My sincere apologies if this has already been asked. I looked around (`[context] setupinteraction externalfigure`, using Google, Bing and the Duck thingy) and found nothing. Details:               $ context --version          mtx-context     | ConTeXt Process Management 0.60     mtx-context     |     mtx-context     | main context file: /opt/context-minimals/texmf-context/tex/context/base/context.mkiv     mtx-context     | current version: 2012.06.26 10:59          $ uname -a     Linux tj-desktop 3.4.4-2-ARCH #1 SMP PREEMPT Sun Jun 24 17:28:37 UTC 2012 i686 GNU/Linux


title: Long Dashed Right Arrow

text: Is there a               \dashrightarrow      equivalent of:               \xrightarrow{\hspace*{4mm}} or \longrightarrow       or a similar way to fudge it?


title: How to write the beautiful code as follows

text: I want to know how to generate the following beautiful code, including fonts, colors, line, and the figure description. I think it is not written by `\lstset`. This picture is extracted from a paper titled Towards Optimization- Safe Systems: Analyzing the Impact of Undefined Behavior. ![enter image description here](http://i.stack.imgur.com/WXFxK.jpg)


title: Use mathrm by default for uppercase Latin characters

text: I'm trying to mix Optima and AMS Euler using eulervm and mathspec in XeLaTeX. The relevant bit of code in my source file is as follows:               \usepackage{eulervm}     \usepackage{mathspec}     \setmathfont(Digits)[Numbers={Lining,Proportional}]{Optima nova LT Pro}     \setmathrm{Optima nova LT Pro}      Using this set up, Euler is used in math mode unless I specify `\mathrm`. For Greek and lowercase Latin characters this works out quite well, but for uppercase Latin I would very much prefer to use Optima's glyphs. My current workaround is to stick `\mathrm` around every uppercase Latin variables in math mode, however this gets rather annoying after a while. Is there any way to coax XeLaTeX into using `\mathrm` by default only for uppercase Latin glyphs?


title: How to cancel the effect of \translate when I want to draw a radial line from the untranslated origin to the current point?

text: Consider the following MWE first.               \documentclass[pstricks,border=12pt]{standalone}     \SpecialCoor     \usepackage{multido}     \begin{document}          % draw the tangential lines     \begin{pspicture}[showgrid](-5,-5)(5,5)     \pscustom[linecolor=red]     {         \psline(1,0)         \code{0 /Angle ED}         \multido{\i=1+1}{15}         {             \translate(!!CP)             \lineto(!1 Angle 1 \i\space 1 sub sqrt Atan add dup /Angle ED PtoC)         }            }     \end{pspicture}          % draw the radial lines     \begin{pspicture}[showgrid](-5,-5)(5,5)     \pscustom[linecolor=blue]     {         \psline(1,0)         \code{0 /Angle ED}         \multido{\i=1+1}{15}         {             \translate(!!CP)             \moveto(!1 Angle 1 \i\space 1 sub sqrt Atan add dup /Angle ED PtoC)             \psline[liftpen=2](0,0)(!!CP)% draw from the UNTRANSLATED origin to the current point         }            }     \end{pspicture}          \end{document}      It produces two output as follows. ![enter image description here](http://i.stack.imgur.com/A48SM.png)![enter image description here](http://i.stack.imgur.com/xcwjh.png) ## Objective The red curve is made by concatenating unit tangent vectors               \pscustom[linecolor=red]     {         \psline(1,0)         \code{0 /Angle ED}         \multido{\i=1+1}{15}         {             \translate(!!CP)             \lineto(!1 Angle 1 \i\space 1 sub sqrt Atan add dup /Angle ED PtoC)         }            }      and the blue curve is not what I want to get.               \pscustom[linecolor=blue]     {         \psline(1,0)         \code{0 /Angle ED}         \multido{\i=1+1}{15}         {             \translate(!!CP)             \moveto(!1 Angle 1 \i\space 1 sub sqrt Atan add dup /Angle ED PtoC)             \psline[liftpen=2](0,0)(!!CP)% draw from the UNTRANSLATED origin to the current point         }            }      The blue diagram should represent a set of radial lines emerging from the origin to the tip of the unit tangent vector. ## Question How to draw a line from the untranslated origin to the current point? In other words, how to draw a line from the absolute origin to the current point? ## Note Please just add code in the given place holder below.               \pscustom[linecolor=blue]     {         \psline(1,0)         \code{0 /Angle ED}         \multido{\i=1+1}{15}         {             % you can add code here             \translate(!!CP)             \moveto(!1 Angle 1 \i\space 1 sub sqrt Atan add dup /Angle ED PtoC)             %\psline[liftpen=2](0,0)(!!CP)% draw from the UNTRANSLATED origin to the current point             % or you can add code here         }            }


title: How to draw a tree?

text: How to draw a tree like ![enter image description here](http://i.stack.imgur.com/np3aB.jpg) using LaTeX and how can I give the labelling to the vertices and the edges?


title: 3D-plotting sine integral (PSTRICKS)

text: I'd like to build up a 3D-Plot (based on `pst-solides3d`), where the function looks like `x=u`, `y=v` and `z=\int_0^x \frac{\sin\left(\pi t \right)}{\pi t} - \frac{1}{3} \mathrm{d}t+\frac{1}{\pi^2}\sin\left(\pi \frac{x}{y}`. I do not know, how to define this function - esp. the sine integral - within the `\defFunction` argument. Is the a `Si` function? Thanks in advance


title: Multi-line equations in latex

text: Is there anyway to write multi-line equations in latex automatically, I mean without using line break or other manually breaking lines. is it possible to tell latex to begin with the next line when the first line reached the edge of the right margin of your page?


title: Ottoman Turkish (Arabic letters)

text: Is it possible to write Ottoman Turkish with TeX, LaTeX, or ArabTeX?


title: Switch from phv to cmr in math mode using beamer

text: In my `beamer` document I am unable to switch to `cmr` for formulae since they look weird otherwise. Minimal Working Example:               \documentclass{mybeamer}      \usepackage{amsmath}     \newcommand*{\myfont}{\fontfamily{cmr}\selectfont}     \begin{document}     \begin{frame}       Normal Text.       {\myfont         \begin{equation*}           f(x) = \sin(x)         \end{equation*}       }     \end{frame}     \end{document}      mybeamer class:               \NeedsTeXFormat{LaTeX2e}     \ProvidesClass{mybeamer}[2010/12/30 v0.5]          \DeclareOption*{\PassOptionsToClass{\CurrentOption}{beamer}}          \ProcessOptions     \LoadClass{beamer}          \renewcommand{\familydefault}{phv}     \renewcommand{\sfdefault}{phv}     \renewcommand{\normalsize}{\fontsize{10.5pt}{12.5pt}\xiiiv}          \DeclareFixedFont{\x}{T1}{phv}{m}{n}{10}     \DeclareFixedFont{\xb}{T1}{phv}{b}{n}{10}     \newfont{\xiiiv}{phvr8t at 30pt}     \newfont{\xiiivb}{phvb8t at 8.5pt}      How can I make this font change happen?


title: currvita - resume section without bullets

text: I like `currvita` class very much. I have problem with creating section without bullets. I would like to add section "additional information" and use full available width. I've found three solutions, each of them is not perfect :               \documentclass[a4paper,10pt]{article}     \usepackage[TextAligned,NoDate]{currvita}     \usepackage{fullpage}     \usepackage{lipsum}     \begin{document}     \settowidth{\cvlabelwidth}{\cvlabelfont {May 2012-present XX}}     \pagestyle{empty}     \begin{cv}{John Doe}          \begin{cvlist}{Additional Information} % ok     \item[] %empty bullet is wrong (due to spacing, but it's required by cvlist)     \end{cvlist}     \lipsum[1-2] % ok          \begin{cvlist}{Additional Information} % ok     \item[]     \lipsum[1-2] % test is wrong (not full width, because it's bullet)     \end{cvlist}          \section*{Additional Information} %heading is wrong     \lipsum[1-2] % ok          \begin{cvlist}{Other section example} %other sections are ok     \item[Feb 2006--Feb 2012] {\bf Lipsum}\\     \lipsum[3]     \item[May 2000--May 2006] {\bf Lipsum}\\     \lipsum[3]     \end{cvlist}          \end{cv}     \end{document}      While "other" sections are ok and I would like to not affect their rendering. How to make section without bullets using full width ? (setting `\cvlabelwidth = 0` still makes no full width, due to bullet indentation. )


title: Under Up Arrow Text

text: I'm trying to do something similar to `$\underleftarrow{A}$`; however with the up arrow, not left or right arrows, i.e., I want to draw a pointer at `A`. Any suggestion, please?


title: Not naming an appendix

text: Consider the following document:               \documentclass[11pt,a4paper,twoside]{book}      \usepackage[titletoc,toc,page]{appendix}      \begin{document}           \setcounter{tocdepth}{2}       \setcounter{secnumdepth}{3}       \tableofcontents           \chapter{First chapter}           \begin{appendices}       \chapter[]{Name of appendix}       \label{ap1}        blah blah      \end{appendices}          \end{document}      This produces in the `TOC`:               Contents          1 First chapter......3     Appendices...........5     Appendix A...........7      and in the body of the document:               Chapter 1     First chapter          Appendices          Appendix A     Name of appendix     blah blah      I don't want to give a name to the appendix, I find it irrelevant. But I'm forced to do it with the `\chapter[]{Name of appendix}` command. Is there a way **not** to have to give each appendix a name? This is the result I want in the body of the document (the `TOC` stays the same):               Chapter 1     First chapter          Appendices          Appendix A     blah blah      Now, I know I can just leave the `\chapter[]{}` command empty and so the title won't show, but I'm looking for a more integral solution and not just an ugly hack. PD: this question originated here. * * * **EDIT** I'm sorry but I'd forgotten my document is in spanish so I didn't add the specific packages. This is what the document looks like now with Werner's new definitions added:               \documentclass[11pt,a4paper,twoside]{book}          \makeatletter     \newcommand{\nonameappendix}{%     \def\@makechapterhead##1{%       \vspace*{50\p@}%       {\parindent \z@ \raggedright \normalfont         \ifnum \c@secnumdepth >\m@ne           \if@mainmatter             \huge\bfseries \@chapapp\space \thechapter             \par\nobreak             %\vskip 20\p@ % <--- Removed           \fi         \fi         %\interlinepenalty\@M % <--- Removed         %\Huge \bfseries ##1\par\nobreak % <--- Removed         \vskip 40\p@       }}%     \def\chaptermark##1{%           \markboth {\MakeUppercase{%             \ifnum \c@secnumdepth >\m@ne               \if@mainmatter                 \@chapapp\ \thechapter%               \fi             \fi             }}{}}}     \makeatother     \newcommand{\newappendix}{\chapter[]{}}%     \usepackage[titletoc,toc,page]{appendix}          \usepackage[latin1]{inputenc}     \usepackage[spanish,activeacute]{babel}          \begin{document}          \setcounter{tocdepth}{2}      \setcounter{secnumdepth}{3}      \tableofcontents          \chapter{First chapter}          \renewcommand{\appendixtocname}{Ap\'endices}     \renewcommand{\appendixpagename}{Ap\'endices}     \begin{appendices}            \nonameappendix       \newappendix       \label{ap1}       \include{apendiceA}          \end{appendices}          \end{document}      where the `apendiceA.tex` file has nothing but text (ie: no chapter commands, no labels, etc..) The issues I'm having with this is: 1-I get `Apéndice A.` in the TOC (notice the dot at the end). This is really minor but it still bugs me. 2- In the body of the document, after the `Apéndice A` title is displayed the text only begins in the next page. This is more serious.


title: Flowchart - draw line from node to edge

text: I have a flowchart as shown in the left diagram. I want to draw a line from a node to an edge as shown in the right diagram. See: ![Sample](http://i.stack.imgur.com/nkuUz.png) How can I do that?               \documentclass{article}      \usepackage{tikz}     \begin{document}     \usetikzlibrary{shapes,arrows}          % Define block styles     \tikzstyle{io} = [trapezium,trapezium left angle=70,trapezium right angle=-70,minimum height=0.6cm, draw, fill=blue!20,      text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt]     \tikzstyle{decision} = [diamond, draw, fill=blue!20,      text width=4.5em, text badly centered, node distance=4cm, inner sep=0pt]     \tikzstyle{block} = [rectangle, draw, fill=blue!20,      text width=5em, text centered, rounded corners, minimum height=4em]     \tikzstyle{line} = [draw, -latex']     \tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=3cm,     minimum height=2em]          \begin{tikzpicture}[node distance = 2cm, auto]     % Place nodes     \node [io] (init) {Input};     \node [decision, below of=init] (identify) {text?};     \node [block, left of=identify,xshift=-2cm] (process) {text};     \node [io, below of=identify, node distance=3cm] (stop) {Output};     % Draw edges       \path [line] (init) -- node {}(identify);     \path [line] (identify) -- node {no}(stop);     \path [line] (identify) -- node {yes}(process);     \end{tikzpicture}     \end{document}


title: supertabular with multicols - automate shrinkheight and prevent page break

text: I want a long-table in two-column mode in a book I am typesetting. I came across a hack to make supertabular work with multicols here. The following MWE works -               \documentclass[twoside]{book}     \usepackage[margin=1in]{geometry}     \usepackage{xcolor,multicol,supertabular,setspace}     \begin{document}     \doublespacing     \chapter{One}     \section{One}     \begin{spacing}{4}     Here is a really long table in 2-column mode     \begin{multicols*}{2}     \let\mcnewpage=\newpage     \makeatletter     \renewcommand\newpage{%             \if@firstcolumn                     \hrule width\linewidth height0pt                     \columnbreak             \else                     \mcnewpage             \fi     }     \makeatother     \begin{supertabular}{lr}     0 & 0 \\ 1 & 1 \\ 2 & 2 \\ 3 & 3 \\ 4 & 4 \\ 5 & 5 \\ 6 & 6 \\ 7 & 7 \\ 8 & 8 \\ 9 & 9 \\      10 & 10 \\ 11 & 11 \\ 12 & 12 \\ 13 & 13 \\ 14 & 14 \\ 15 & 15 \\ 16 & 16 \\ 17 & 17 \\ 18 & 18 \\ 19 & 19 \\      20 & 20 \\ 21 & 21 \\ 22 & 22 \\ 23 & 23 \\ 24 & 24 \\ 25 & 25 \\ 26 & 26 \\ 27 & 27 \\ 28 & 28 \\ 29 & 29 \\      30 & 30 \\ 31 & 31 \\ 32 & 32 \\ 33 & 33 \\ 34 & 34 \\ 35 & 35 \\ 36 & 36 \\ 37 & 37 \\ 38 & 38 \\ 39 & 39 \\      \end{supertabular}     \end{multicols*}     End of table.     \end{spacing}     \end{document}      However, there are two issues (1) The number of rows on second, third, and all further pages is same as that on the first page. The first page has only five rows since there is chapter and section header, but all further pages are half empty. (2) The table ends on page 4, and there is one full empty page (with page number and header), which is followed by the "End of table" on page 6. I tried using `\shrinkheight` as follows -               \begin{supertabular}{lr}     0 & 0 \\ 1 & 1 \\ 2 & 2 \\ 3 & 3 \\ 4 & 4 \\ 5 & 5 \\ 6 & 6 \\ 7 & 7 \\ 8 & 8 \\ 9 & 9 \\      10 & 10 \\ 11 & 11 \\ 12 & 12 \\ 13 & 13 \\ 14 & 14 \\ 15 & 15 \\ 16 & 16 \\ 17 & 17 \\ 18 & 18 \\ 19 & 19 \\      \shrinkheight{-45em}     20 & 20 \\ 21 & 21 \\ 22 & 22 \\ 23 & 23 \\ 24 & 24 \\ 25 & 25 \\ 26 & 26 \\ 27 & 27 \\ 28 & 28 \\ 29 & 29 \\      30 & 30 \\ 31 & 31 \\ 32 & 32 \\ 33 & 33 \\ 34 & 34 \\ 35 & 35 \\ 36 & 36 \\ 37 & 37 \\ 38 & 38 \\ 39 & 39 \\      \end{supertabular}      However, this impacts only the first column on second page. All further columns are again short with only five lines. What I need is something like this which gives me perfect results -               \begin{supertabular}{lr}     0 & 0 \\ 1 & 1 \\ 2 & 2 \\ 3 & 3 \\ 4 & 4 \\ 5 & 5 \\ 6 & 6 \\ 7 & 7 \\ 8 & 8 \\ 9 & 9 \\      10 & 10 \\ 11 & 11 \\ 12 & 12 \\ 13 & 13 \\ 14 & 14 \\ 15 & 15 \\ 16 & 16 \\ 17 & 17 \\ 18 & 18 \\ 19 & 19 \\      \shrinkheight{-45em}     20 & 20 \\ 21 & 21 \\ 22 & 22 \\ 23 & 23 \\ 24 & 24 \\ 25 & 25 \\ 26 & 26 \\ 27 & 27 \\ 28 & 28 \\ 29 & 29 \\      30 & 30 \\ 31 & 31 \\ 32 & 32 \\ 33 & 33 \\      \shrinkheight{-45em}     34 & 34 \\ 35 & 35 \\ 36 & 36 \\ 37 & 37 \\ 38 & 38 \\ 39 & 39 \\      \end{supertabular}      This means I need to have a `\shrinkheight` command after page break (which I manually find out) and every column break (which I manually find out as well). This is cumbersome for long tables that run into many pages, plus one needs to find out the right places for `\shrinkheight` all over again if there is a font size or layout change. From a programming perspective I can think of a solution but I do not know LaTeX programming well enough to implement it. What might work is issuing the `\shrinkheight` command after every `mcnewpage` and also after every `\columnbreak` starting from the second page. To detect the second page, a counter could be set to 0, which is incremented after every `mcnewpage`. If the counter is greater than 0, one would issue `\shrinkheight` after the `\columnbreak`. However, I tried this but this has no effect -               \makeatletter     \renewcommand\newpage{%             \if@firstcolumn                     \hrule width\linewidth height0pt                     \columnbreak             \else                     \mcnewpage              \shrinkheight{-45em}             \fi     }     \makeatother      So how does one solve this problem? Also how can one remove the extra blank page?


title: Colour gradient filling in PSTricks figure

text: Consider the following drawing:               \documentclass[       a4paper,       12pt     ]{article}          \usepackage[utf8]{inputenc}     \usepackage[       hmargin=2.4cm,       vmargin=3cm     ]{geometry}     \usepackage{rotating}     \usepackage{pstricks-add}          \newcommand*\forskel{350 140 div }     \newcommand*\udtag[2]{\rput(!10   249 140 div #1 \forskel mul add){\small #2}}     \newcommand*\pil[1]{  \rput(!11.5 249 140 div #1 \forskel mul add){\small $\rightarrow$}}     \newcommand*\destillering[1]{%       % Ventiler og udtag.       \psline(!4    2.8  #1 \forskel mul add)%              (!4    1.8  #1 \forskel mul add)%              (!4    2.3  #1 \forskel mul add)%              (!5.3  2.3  #1 \forskel mul add)%              (!5.3  2.65 #1 \forskel mul add)       \psline(!5.15 2.5  #1 \forskel mul add)%              (!5.15 2.8  #1 \forskel mul add)%              (!5.95 2.8  #1 \forskel mul add)%              (!5.95 2.5  #1 \forskel mul add)       \psline(!5.8  2.65 #1 \forskel mul add)%              (!5.8  2.3  #1 \forskel mul add)%              (!6.3  2.3  #1 \forskel mul add)%              (!6.3  2.65 #1 \forskel mul add)       \psline(!6.15 2.5  #1 \forskel mul add)%              (!6.15 2.8  #1 \forskel mul add)%              (!6.95 2.8  #1 \forskel mul add)%              (!6.95 2.5  #1 \forskel mul add)       \psline(!6.8  2.65 #1 \forskel mul add)%              (!6.8  2.3  #1 \forskel mul add)%              (!7.4  2.3  #1 \forskel mul add)       \psline(!   8.5       284 140 div #1       \forskel mul add)%              (!   8.5       214 140 div #1 1 add \forskel mul add)       \psarc(! 1144 140 div   2.3       #1       \forskel mul add){0.27142857}{180}{270}       \psarc(! 1144 140 div   2.3       #1       \forskel mul add){0.77142857}{180}{270}       \psline(!   7.9         2.3       #1       \forskel mul add)%              (!   8.5         2.3       #1       \forskel mul add)       \psline(!1144 140 div 284 140 div #1       \forskel mul add)%              (!  12         284 140 div #1       \forskel mul add)       \psline(!  12         214 140 div #1       \forskel mul add)%              (!2861 350 div 214 140 div #1       \forskel mul add)       % `Mellemventiler'.       \psline(!3.5  470 140 div #1 \forskel mul add)%              (!5.3  470 140 div #1 \forskel mul add)%              (!5.3  519 140 div #1 \forskel mul add)       \psline(!5.15 498 140 div #1 \forskel mul add)%              (!5.15 540 140 div #1 \forskel mul add)%              (!5.95 540 140 div #1 \forskel mul add)%              (!5.95 498 140 div #1 \forskel mul add)       \psline(!5.8  519 140 div #1 \forskel mul add)%              (!5.8  470 140 div #1 \forskel mul add)%              (!6.3  470 140 div #1 \forskel mul add)%              (!6.3  519 140 div #1 \forskel mul add)       \psline(!6.15 498 140 div #1 \forskel mul add)%              (!6.15 540 140 div #1 \forskel mul add)%              (!6.95 540 140 div #1 \forskel mul add)%              (!6.95 498 140 div #1 \forskel mul add)       \psline(!6.8  519 140 div #1 \forskel mul add)%              (!6.8  470 140 div #1 \forskel mul add)%              (!8.1  470 140 div #1 \forskel mul add)%              (!8.1  392 140 div #1 \forskel mul add)%     }          \pagestyle{empty}          \begin{document}          \vfill     \begin{figure}[htbp]      \centering      \psset{unit=1cm}       \begin{pspicture}(-1.02,0.3)(12,17)         % Opvarmningsovn.         \psline(0.7,4.7)(0.7,5)(3.3,5)(3.3,2.9)         \psline(3.3,2.4)(3.3,2)(0.7,2)(0.7,4.2)         \psline(-0.8,4.7)(2.3,4.7)         \psline(-0.8,4.2)(2.3,4.2)         \psarc(2.3,4){0.2}{270}{90}         \psarc(2.3,4){0.7}{270}{90}         \psline(2.3,3.8)(1.7,3.8)         \psline(2.3,3.3)(1.7,3.3)         \psarc(1.7,3.1){0.2}{90}{270}         \psarc(1.7,3.1){0.7}{90}{270}         \psline(1.7,2.9)(3.5,2.9)         \psline(1.7,2.4)(3.5,2.4)         \rput(2,1.75){\small Ovn}         \rput(1.15,4.45){\small `Kold' råolie}         \rput(-0.4,4.45){\small $\rightarrow$}         % Tårnets indre samt udtag.         \multido{\i=0+1}{5}{%           \destillering{\i}%           \pil{\i}%         }         \pil{6}         \udtag{0}{Brændselsolie}         \udtag{1}{Smøreolie}         \udtag{2}{Dieselolie}         \udtag{3}{Petroleum}         \udtag{4}{Nafta}         \udtag{6}{Gasser}         % Tårnets ydre.         \psline(  3.5,   2.9)%                (! 3.5  179 140 div 6 \forskel mul add)%                (! 5.75 179 140 div 6 \forskel mul add)         \psarc(!  6.5  179 140 div 6 \forskel mul add){0.25}{90}{180}         \psline(! 6.5  214 140 div 6 \forskel mul add)%                (!12    214 140 div 6 \forskel mul add)         \psarc(!  6.5  179 140 div 6 \forskel mul add){0.75}{90}{180}         \psline(! 6.5  284 140 div 6 \forskel mul add)%                (!12    284 140 div 6 \forskel mul add)         \psline(! 6.25 179 140 div 6 \forskel mul add)%                (! 8.5  179 140 div 6 \forskel mul add)%                (! 8.5  284 140 div 5 \forskel mul add)%     %           (!12    284 140 div 5 \forskel mul add)     %    \psline(! 8.5  214 140 div 5 \forskel mul add)%     %           (!12    214 140 div 5 \forskel mul add)         \psline(!8.5 284 140 div 5 \forskel mul add)%                (!8.5 214 140 div 5 \forskel mul add)         \psarc(6.5,1){0.25}{180}{270}         \psline(6.5,0.75)(12,0.75)         \psarc(6.5,1){0.75}{180}{270}         \psline(6.5,0.25)(12,0.25)         \psline(!8.5 214 140 div)(8.5,1)(6.25,1)         \rput(9,0.5){\small Destillationsrester}         \rput(11.5,0.5){\small $\rightarrow$}         \psline(5.75,1)(3.5,1)(3.5,2.4)       \end{pspicture}     \end{figure}     \vfill          \end{document}      ![output](http://i.stack.imgur.com/yV8cl.jpg) How do I gradually colour the tower and the pipes, starting with a dark red at the bottom and ending with light yellow at the top? **Update** Do to Werner's help, here is what I ended up with:               \documentclass[       a4paper,       12pt     ]{article}          \usepackage[utf8]{inputenc}     \usepackage[       hmargin=2.4cm,       vmargin=3cm     ]{geometry}     \usepackage{rotating}     \usepackage{       pst-slpe,       pstricks-add     }          \newcommand*\forskel{350 140 div }     \newcommand*\udtag[2]{\rput(!10   249 140 div #1 \forskel mul add){\small #2}}     \newcommand*\pil[1]{  \rput(!11.5 249 140 div #1 \forskel mul add){\small $\rightarrow$}}     \newcommand*\destillering[1]{%       % Ventiler.       \psline(!4    2.8  #1 \forskel mul add)%              (!4    1.8  #1 \forskel mul add)%              (!4    2.3  #1 \forskel mul add)%              (!5.3  2.3  #1 \forskel mul add)%              (!5.3  2.65 #1 \forskel mul add)       \psline(!5.15 2.5  #1 \forskel mul add)%              (!5.15 2.8  #1 \forskel mul add)%              (!5.95 2.8  #1 \forskel mul add)%              (!5.95 2.5  #1 \forskel mul add)       \psline(!5.8  2.65 #1 \forskel mul add)%              (!5.8  2.3  #1 \forskel mul add)%              (!6.3  2.3  #1 \forskel mul add)%              (!6.3  2.65 #1 \forskel mul add)       \psline(!6.15 2.5  #1 \forskel mul add)%              (!6.15 2.8  #1 \forskel mul add)%              (!6.95 2.8  #1 \forskel mul add)%              (!6.95 2.5  #1 \forskel mul add)       \psline(!6.8  2.65 #1 \forskel mul add)%              (!6.8  2.3  #1 \forskel mul add)%              (!7.4  2.3  #1 \forskel mul add)       \psline(!   8.5       284 140 div #1       \forskel mul add)%              (!   8.5       214 140 div #1 1 add \forskel mul add)       % `Mellemventiler'.       \psline(!3.5  470 140 div #1 \forskel mul add)%              (!5.3  470 140 div #1 \forskel mul add)%              (!5.3  519 140 div #1 \forskel mul add)       \psline(!5.15 498 140 div #1 \forskel mul add)%              (!5.15 540 140 div #1 \forskel mul add)%              (!5.95 540 140 div #1 \forskel mul add)%              (!5.95 498 140 div #1 \forskel mul add)       \psline(!5.8  519 140 div #1 \forskel mul add)%              (!5.8  470 140 div #1 \forskel mul add)%              (!6.3  470 140 div #1 \forskel mul add)%              (!6.3  519 140 div #1 \forskel mul add)       \psline(!6.15 498 140 div #1 \forskel mul add)%              (!6.15 540 140 div #1 \forskel mul add)%              (!6.95 540 140 div #1 \forskel mul add)%              (!6.95 498 140 div #1 \forskel mul add)       \psline(!6.8  519 140 div #1 \forskel mul add)%              (!6.8  470 140 div #1 \forskel mul add)%              (!8.1  470 140 div #1 \forskel mul add)%              (!8.1  392 140 div #1 \forskel mul add)%       % Udtag.       \psarc(! 1144 140 div   2.3       #1       \forskel mul add){0.27142857}{180}{270}       \psarc(! 1144 140 div   2.3       #1       \forskel mul add){0.77142857}{180}{270}       \psline(!   7.9         2.3       #1       \forskel mul add)%              (!   8.5         2.3       #1       \forskel mul add)       \psline(!1144 140 div 284 140 div #1       \forskel mul add)%              (!  12         284 140 div #1       \forskel mul add)       \psline(!  12         214 140 div #1       \forskel mul add)%              (!2861 350 div 214 140 div #1       \forskel mul add)     }          \pagestyle{empty}          \begin{document}          \vfill     \begin{center}      \psset{        unit=1cm      }       \begin{pspicture}(-0.8,0.25)(12,17)         % Farvegraduering.        {\psset{           linestyle = none,           slopeangle = 90,           fillstyle = slope,           slopebegin = red!90!black,           slopeend = yellow         }           \psframe[             slopesteps = 50           ](0.7,2)(3.3,5)           \pscustom[             slopesteps = 200           ]{             \multido{\iA = 0+1}{5}{%               \psline(! 8.5 284 140 div \iA\space \forskel mul add)%                      (!12   284 140 div \iA\space \forskel mul add)%                      (!12   214 140 div \iA\space \forskel mul add)%                      (! 8.5 214 140 div \iA\space \forskel mul add)%             }             \psline(8.5,1)(6.3,1)             \psarc(6.5,1){0.25}{180}{270}             \psline(6.5,0.75)(12,0.75)(12,0.25)(6.5,0.25)             \psarcn(6.5,1){0.75}{270}{180}             \psline(5.75,1)(3.5,1)(3.5,2.4)(3.5,16.3)(5.75,16.3)             \psarc(6.5,16.3){0.75}{90}{180}             \psline(6.5,17.05)(12,17.05)(12,16.55)(6.5,16.55)             \psarc(6.5,16.3){0.25}{90}{180}             \psline(6.5,16.3)(8.5,16.3)           }        }        {\psset{           linestyle = none,           slopeangle = 90,           fillstyle = slope,           slopebegin = red!80!yellow,           slopeend = blue!50!black         }           \pscustom[             slopesteps = 50           ]{             \psline(-0.8,4.2)(2.3,4.2)             \psarc(2.3,4){0.2}{-90}{90}             \psline(2.3,3.8)(1.7,3.8)             \psarcn(1.7,3.1){0.7}{-90}{90}             \psline(1.7,2.4)(3.5,2.4)(3.5,2.9)(1.7,2.9)             \psarc(1.7,3.1){0.2}{90}{-90}             \psline(1.7,3.3)(2.3,3.3)             \psarcn(2.3,4){0.7}{90}{-90}             \psline(2.3,4.7)(-0.8,4.7)           }        }         % Opvarmningsovn.         \psline(0.7,4.7)(0.7,5)(3.3,5)(3.3,2.9)         \psline(3.3,2.4)(3.3,2)(0.7,2)(0.7,4.2)         \psline(-0.8,4.7)(2.3,4.7)         \psline(-0.8,4.2)(2.3,4.2)         \psarc(2.3,4){0.2}{270}{90}         \psarc(2.3,4){0.7}{270}{90}         \psline(2.3,3.8)(1.7,3.8)         \psline(2.3,3.3)(1.7,3.3)         \psarc(1.7,3.1){0.2}{90}{270}         \psarc(1.7,3.1){0.7}{90}{270}         \psline(1.7,2.9)(3.5,2.9)         \psline(1.7,2.4)(3.5,2.4)         \rput(2,1.75){\small Ovn}         \rput(1.15,4.45){\small `Kold' råolie}         \rput(-0.4,4.45){\small $\rightarrow$}         % Tårnets indre samt udtag.         \multido{\iB = 0+1}{5}{%           \destillering{\iB}%           \pil{\iB}%         }         \pil{6}         \udtag{0}{Brændselsolie}         \udtag{1}{Smøreolie}         \udtag{2}{Dieselolie}         \udtag{3}{Petroleum}         \udtag{4}{Nafta}         \udtag{6}{Gasser}         % Tårnets ydre.         \psline(  3.5,   2.9)%                (! 3.5  179 140 div 6 \forskel mul add)%                (! 5.75 179 140 div 6 \forskel mul add)         \psarc(!  6.5  179 140 div 6 \forskel mul add){0.25}{90}{180}         \psline(! 6.5  214 140 div 6 \forskel mul add)%                (!12    214 140 div 6 \forskel mul add)         \psarc(!  6.5  179 140 div 6 \forskel mul add){0.75}{90}{180}         \psline(! 6.5  284 140 div 6 \forskel mul add)%                (!12    284 140 div 6 \forskel mul add)         \psline(! 6.25 179 140 div 6 \forskel mul add)%                (! 8.5  179 140 div 6 \forskel mul add)%                (! 8.5  284 140 div 5 \forskel mul add)%     %           (!12    284 140 div 5 \forskel mul add)     %    \psline(! 8.5  214 140 div 5 \forskel mul add)%     %           (!12    214 140 div 5 \forskel mul add)         \psline(!8.5 284 140 div 5 \forskel mul add)%                (!8.5 214 140 div 5 \forskel mul add)         % Nederste udtag.         \psarc(6.5,1){0.25}{180}{270}         \psline(6.5,0.75)(12,0.75)         \psline(12,0.25)(6.5,0.25)         \psarc(6.5,1){0.75}{180}{270}         \psline(!8.5 214 140 div)(8.5,1)(6.25,1)         \rput(9,0.5){\small Destillationsrester}         \rput(11.5,0.5){\small $\rightarrow$}         \psline(5.75,1)(3.5,1)(3.5,2.4)       \end{pspicture}     \end{center}     \vfill          \end{document}      ![output](http://i.stack.imgur.com/vNPva.jpg)


title: Enlarge limits by absolute value when using symbolic coordinates

text: How can I expand the x-axis by, say 1cm, in both directions in the following bar plot?               \documentclass{article}     \usepackage{pgfplots}          \begin{document}     \begin{tikzpicture}     \begin{axis}[ybar,symbolic x coords={foo,bar,baz},x=2cm]     \addplot coordinates { (foo,1) (bar,3) (baz,2) };     \end{axis}     \end{tikzpicture}     \end{document}      The problem is that I cannot get `enlarge x limits` with `abs value` to work when using symbolic coordinates. Using `x=2cm` to set the distance **between** the bars works fine, but how do I control the distance between the outer bars and the plot's boundary?


title: Add more symbols on Latex panel in TexShop on Mac OSX

text: ![enter image description here](http://i.stack.imgur.com/K5hXM.png) I am using TexShop on my Macbook Pro. The Latex panel in TexShop doesn't contain lot of symbols like in TexStudio as evident from the above picture. So please suggest how to add more symbols on the Latex panel ?


title: Drawing a block diagram using tikzlibrary

text: I was drawing a block diagram using tikzlibrary. I am adding the code now               \usetikzlibrary{shapes,arrows}  %for drawing shapes     \begin{document}     \tikzstyle{line}=[draw,-latex']     \tikzstyle{block}=[draw,rectangle]     \begin{figure}[h!]     \centering     \begin{tikzpicture}[node distance=1cm]          \node[block](AONE){A};     \node(G)[block,right of=AONE,xshift=2cm]{B};     \node(BONE)[block,below of=AONE,xshift=2cm,yshift=.1cm]{C};     \node(CONE)[block,below of=AONE,yshift=-.9cm]{D};     \node(H)[block,below of=G,yshift=-.9cm]{B};     \node(J)[block2,right of=BONE,xshift=3cm]{E};     \node(K)[block,below of=J,yshift=-1cm]{F};     \path[line](AONE)--(G);     \path[line](CONE)--(H);     \path[line](BONE)--(J);     \path[line](G)--(J);     \path[line](H)--(J);     \path[line](J)--(K);          \end{tikzpicture}     \caption{xxx}     \end{figure}     \end{document}      but from B block I am not getting straight line.They are starting from the bottom of the block.How to make it start from the right side and how to make lines straight,All other parts are working properly.


title: Trees in latex : Depth of 4 nodes

text: I am following the current tutorial (MWE) : link However, I am facing difficulties to perform a tree of 4 nodes. Items are superposed, and even if I add a `child [missing] {}` it doesn't solve the issue. On below an example of code which is not displayed correctly :               \documentclass{minimal}     \usepackage{tikz}     \usetikzlibrary{trees}     \begin{document}     \tikzstyle{every node}=[draw=black,thick,anchor=west]     \tikzstyle{selected}=[draw=red,fill=red!30]     \tikzstyle{optional}=[dashed,fill=gray!50]     \begin{tikzpicture}[%       grow via three points={one child at (0.5,-0.7) and       two children at (0.5,-0.7) and (0.5,-1.4)},       edge from parent path={(\tikzparentnode.south) |- (\tikzchildnode.west)}]     \node {texmf}         child { node {doc}}              child { node {fonts}}         child { node {source}}         child { node [selected] {tex}           child { node {generic}}           child {               node [optional] {latex}              child { node {latex21} }              child { node {latex22} }              child { node {latex23} }           }           child [missing] {}                         child [missing] {}                         child [missing] {}                         child {               node {plain}              child { node {plain21} }              child { node {plain22} }              child { node {plain23} }              }           child [missing] {}                         child [missing] {}                         child [missing] {}                       }         child [missing] {}                       child [missing] {}                       child [missing] {}                       child [missing] {}                       child [missing] {}                       child [missing] {}                       child { node {texdoc}};       \end{tikzpicture}     \end{document}      ![Issue of display, textdoc should be on below](http://i.stack.imgur.com/KWpmJ.png) Actually, I do not understand where and when to use `child [missing] {}`. Thank you in advance for your help.


title: Latex - Headlines with Chapter (left = even page) and Section + Subsection (right = odd page)

text: I would like to format my headlines like that: **left page:** _left side:_ Chapter x, _right side:_ name of chapter **rigt page:** _left side:_ subsection, _right side:_ name of subsubsection but only if there is an existing subsubsection. With the `fancyhdr` package I could get so far that I got chapter and subsection as they are intended. But if I try to use `\renewcommand` `\subsectionmark` it overwrites the rightmark. Is there any simple way to point on the subsection title (like defining a variable or s.th. like that) and how can i define that it only appears if a subsection is existing (case structure perhaps)? Here is the code up to now.               \documentclass[12pt, a4paper, ngerman, twocolumn, titlepage, intoc, BCOR=5mm]{scrbook}          \usepackage{fancyhdr}     \pagestyle{fancy}          \fancyhf{}     \renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}     \renewcommand{\sectionmark}[1]{\markright{\thesection{~}{#1}}}               \rhead[subsectionname if subsection existing]{\leftmark}     \lhead[\rightmark]{\chaptername~\thechapter}     \lfoot[]{}     \cfoot[\thepage]{\thepage}     \rfoot[]{}          \usepackage{babel}     \usepackage{lipsum}          \begin{document}          \chapter{Wurst}     \lipsum     \lipsum     \section{Fleischwurst}     \lipsum     \lipsum     \subsection{Lyoner}     \lipsum     \lipsum          \end{document}      This is what I get: ![Headline Problem](http://i.stack.imgur.com/kWydK.jpg) I hope my problem is understadable. Thanks in advance.


title: Matlab LaTeX Interpreter: Minus sign in subscript or in superscript

text: In general, using Matlab with the LaTeX interpreter works fine. Today I focus a really stupid bug in the visualization of the minus sign. In Matlab I write a text with the LaTeX string `$K_{-1}$` and it simply shows the output of `$K_{1}$`. On the one hand the minus sign does not work. On the other hand the plus sign and plenty of other signs work. I have found some "solutions" but they do not work.   1. The first one tries to link another LaTeX version to the Matlab installation directory, so that Matlab should use the newer version of LaTeX. But it does not work for me. > i solved this problem linking my latex installation inside the base latex > directory of matlab > >     1. rename (or delete if u prefer) > /installation_matlab_path/matlab/sys/tex/latex/base in > /installation_matlab_path/matlab/sys/tex/latex/old_base >     2. cd installation_matlab_path/matlab/sys/tex/latex/ >     3. ln -s /usr/share/texmf-texlive/tex/latex/base/ base > > if u don't know where's your latex installation path just search for a file > inside the tex/latex/base directory   2. The second one uses additional braces to differenciate between the minus sign and the following characters but it does not work either.  > Instead of $^{-1}$, try $^{{-}1}$. That is include the minus sign in its own > braces. It worked for me. Perhaps, anyone can help me out with this problem. Thanks!


title: What programmable drawing tool(s) can solve how to fill a region with a path

text: I've recently become interested in computer numerical control (CNC), and have been considering using `METAPOST` in a CNC work-flow (using pstoedit to convert .pdf (or .mp) files to G-Code). The extant opensource computer aided manufacturing (CAM) programs all seem to have difficulties with efficiency and elegance (in the sense of scientific correctness) --- if you have specific successes w/ CAM Tools to mention, please note them in the comments. What sort of functions / modules / programs, which, given a filled region, will create a continuous, as-smooth-as-possible ( _i.e._ , not made of line segments), spiraling path which will completely fill the area w/ a circular pen of a given size and a certain minimum overlap (and which can either start from the center of the region and move out, or work its way from the outside in)? Bonus points if it's also able to accommodate holes, more bonus points if it will create a sub-paths for efficiency. Is this possible in METAPOST? if not, what other tool(s) should I be looking at in addition to g.kov's nifty Asymptote solution (which is a great start, but uses line segments and won't instantiate new sub-regions)?


title: Missing jump to source

text: I used to be able to right click on the pdf and the bottom of the list would be a "jump to source" option which would take me to the source code where I had clicked on the pdf. It is no longer there how do I get it back? I am using Miktex 2.9 and texworks. Sorry I can't be more informative I am not very computer literate.


title: Title indentation after linebreak

text: I have a document with a few long-named sections, which break at two lines, like this: ![enter image description here](http://i.stack.imgur.com/H7FBN.png) To meet some standards I need to change indentation of these titles (after `\linebreak`) at the level of normal text: ![enter image description here](http://i.stack.imgur.com/XEZLQ.png) How can I do this? I searched for a few hours on Google and here and find nothing. **Update** I use `eskdx` package for document and its class `eskdtext`. Sections are default for this class (no redefenitions).


title: Vertical offset in bullets

text: I'm using the moderncv class, and so far is pretty nice, except that I would like to move the bullets a bit higher (by default they are aligned to the bottom of the line). Here is a small example               \documentclass[11pt,letterpaper,sans]{moderncv}     \moderncvstyle{casual}     \moderncvcolor{blue}          \firstname{John}     \familyname{Doe}          \begin{document}          \cvitem{}{         \begin{itemize}             \item First item.             \item Second item.             \item Third item.         \end{itemize}     }          \end{document}      I know bullets can be redefined with something like: `\renewcommand{\labelitemi}` But I don't know what to add to the default definition (bellow) in order to displace them vertically:               \newcommand*{\labelitemi}{\strut\textcolor{color1}{\large\rmfamily\textbullet}}


title: Oversize table with nested tabularx->minipage->tabular* has columns that are too narrow (Memoir)

text: I am trying to lay out a table heading that looks something like this:                     TITLE     ---------------------      subtitle       Name  Value             description       Name  A value of         Name  Value              some length        Name  Value      Where _Name_ and _Value_ are arbitrary pairs of values (and value may be somewhat lengthy). In my circumstances this layout is better set at a width greater than the background `\textwidth`. Unfortunately that _seems_ to be the cause of an issue because in my layout the inner tables, containing Name/Value, are too narrow. The issue may be elsewhere, for example a problem with nesting tables - though the _memoir_ package documentation specifically advises that nesting should be okay, save a workaround when `tabularx` environments are nested – not the case here. Here is an example demonstrating the issue, with vertical lines added to the tabular environments for illustration:               \documentclass[oneside,12pt]{memoir}     \usepackage{ragged2e}     \usepackage{lipsum}          \begin{document}       \hspace{-3cm}%       \begin{tabularx}{14cm}[t]{l |X|}         \fbox{\begin{minipage}{9cm}%           \centering           {\Large Title}\\\medskip           \RaggedRight           \begin{tabular*}{9cm}{|r|X|}           \toprule           Name & Value \\           Name & This is a long value that will wrap a couple of lines.\\           \bottomrule           \end{tabular*}         \end{minipage}} & %         \begin{minipage}{6cm}           \RaggedRight           \begin{center}Subtitle\end{center}           \textit{Description under the title}\\\bigskip           \begin{tabular*}{\linewidth}{rl}           Name & Some value\\           Name & Value\\           \end{tabular*}         \end{minipage}       \end{tabularx}     \end{document}      As you can see the effect is something like:                     TITLE     ---------------------         subtitle       Name | Value  |            description       Name | A value|            Name  Value             | of some|            Name  Value            |  length|      I seem to be able to get to something closer to the desired effect by giving all the tabular columns particular widths with `p{}`, though I have not yet worked it out and I expect there is a more elegant and dynamic solution than hard-coding everything (...but perhaps not). I am using the _Memoir_ package, and would enjoy thoughts on how to achieve the above using that package.


title: Section indent or leftmargin

text: I use the **titlesec** package for decoration sections and subsections. But i do not know how to change _leftmargin_ or _indent_ for this. Look at the picture, the green line is where i want to move the section. I use this code               \documentclass[a4paper, 14pt]{extreport}     \usepackage{titlesec}          \titleformat{\section}{}{\thesection}{14pt}{}      ![enter image description here](http://i.stack.imgur.com/nMpgi.png)


title: Wrong width in pstool

text: I try to set up a report with the assistance of matlabfrag and pstool. I have an issue to define the correct width of such an diagram. Especially in combination with includegraphics, the problem becomes clear. The attached working example shows the misalignment:               \documentclass[11pt,a4paper]{article}          \usepackage[crop=pdfcrop]{pstool}                   % Make psfrag work with pdflatex     \usepackage{amsmath}                                % mathematics (centered equations)     \usepackage{amssymb}                                % mathematical symbols     \usepackage{mathtools}                              % math extension     \usepackage{units}                                  % units          \begin{document}          \begin{figure}         \centering         \includegraphics[width=14cm]{P1060376}         \caption{set-up}         \label{fig:calibrationSetup}     \end{figure}          \begin{figure}         \centering         \psfragfig*[width=14cm]{fitm035}         \caption{fitm035}         \label{fig:fitm035}     \end{figure}          \end{document}      The complete working example with the graphics included can be found in my owncloud. As you can see, even when defining a constant width ( in contrast of using `\textwidth`, the figure is still not aligned properly, in contrast to the image.


title: Diagonal arrows/vectors not working

text: For some reason I can't get diagonal arrows/vectors to work. Only the arrowhead shows up - the line is missing. For example, in the following, the first vector is fine (horizontal) but the second just gives a floating arrowhead.               \setlength{\unitlength}{1mm}     \begin{picture}(60, 40)       \put(30, 20){\vector(1, 0){30}}       \put(30, 20){\vector(4, 1){20}}     \end{picture}      I've tried using `\thicklines`, `\thinlines`, doesn't make a difference. I'm using MiKTeX 2.9 with TeXnicCenter.


title: Explanations about functions in postscript

text: I try to create some symbols from bc-logo with pgf. These symbols are defined in .mps file. I have some difficulties with                 0 0.19284 dtransform truncate idtransform setlinewidth        pop [] 0 setdash 1 setlinejoin       10 setmiterlimit         I understand some parts but I can't translate this expression with some commands from th system base layer of pgf. About these functions : for example it's possible to write and the to compile with pdflatex:                 \includegraphics[height=3in]{/Users/ego/Desktop/latex/bclogo/latex/bc-dfrance.mps}      You can find this file here : bc-logo So I suppose that the postscript functions used in the bc-dfrance.mps are also PDF functions. Another function that I found in this file is `rlineto`. I would like to know if there is an equivalent function in the basic layer of PGF (not in tikz because we can use relative coordinates) Here a part of my work, I can't use something like scale=2 for example because `\pgfsetlinewidth{10pt}` are never modified. I think the code below is useful to set up the line width. I need to do the same thing with `\pgflinewidth`. Is it correct ?               \documentclass{scrartcl}     \usepackage[utf8]{inputenc}      \usepackage[T1]{fontenc}      \usepackage[dvipsnames]{xcolor}      \usepackage{tikz}      \begin{document}          \includegraphics[height=3in]{/Users/ego/Desktop/latex/bclogo/latex/bc-dfrance.mps}          \begin{tikzpicture}[scale=10]     \def\i{\pgfusepath{clip}}     \let\o\pgfpathclose     \let\s\pgfusepathqfillstroke     \def\f{\pgfusepath{fill}}     \def\p #1#2{\pgfqpoint{#1bp}{#2bp}}     \def\m #1 #2 {\pgfpathmoveto{\p{#1}{#2}}}     \def\r #1 #2 #3 #4 {\pgfpathrectangle{\p{#1}{#2}}{\p{#3}{#4}}}      \def\l #1 #2 {\pgfpathlineto{\p{#1}{#2}}}     \def\c #1 #2 #3 #4 #5 #6 {%     \pgfpathcurveto{\p{#1}{#2}}{\p{#3}{#4}}{\p{#5}{#6}}}%      \definecolor{cola}{rgb}{0,0.13672,0.58203}      \definecolor{colb}{rgb}{1,1,1}       \definecolor{colc}{rgb}{ 0.92578,0.16016,0.22266}     \definecolor{cold}{rgb}{ 0,0,0}           \m 69.29587 697.21698      \l 86.23233 697.21698     \l 86.23233 676.1185     \l 69.29587 676.1185     \i        \m 69.68298 690.30095     \l 69.68298 695.78268     \l 70.17444 695.84264     \l 70.63571 695.88812     \l 71.07422 695.91524     \l 71.4901 695.92976     \l 71.88321 695.93361     \l 72.25758 695.92297     \l 72.60909 695.90366     \l 72.94183 695.87366     \l 73.25937 695.832     \l 73.55804 695.78268     \l 73.84538 695.72556     \l 74.11375 695.66171     \l 74.37468 695.59395     \l 74.62419 695.52135     \l 74.86237 695.44586     \l 75.0929 695.36263     \l 75.31598 695.28323     \l 75.53151 695.19711     \l 75.71677 695.12451     \l 75.71677 684.15721     \l 75.53151 684.2288      \l 75.31598 684.31204     \l 75.0929 684.39526     \l 74.86237 684.4785     \l 74.62419 684.554     \l 74.37468 684.62659     \l 74.11375 684.69435     \l 73.84538 684.75821     \l 73.55804 684.81532     \l 73.25937 684.86472     \l 72.94183 684.90245     \l 72.60909 684.93631     \l 72.25758 684.95467     \l 71.88321 684.96631     \l 71.4901 684.96242     \l 71.07422 684.94794     \l 70.63571 684.91693     \l 70.17444 684.87534     \l 69.68298 684.81532     \pgfsetfillcolor{cola}%     \o        \f     \m 75.72807 689.63504     \l 75.74318 695.11388     \l 75.95117 695.03065     \l 76.15906 694.95132     \l 76.36316 694.87193     \l 76.56737 694.79259     \l 76.77525 694.72     \l 76.98703 694.65614     \l 77.19867 694.59222     \l 77.41798 694.539     \l 77.64485 694.49352     \l 77.87924 694.45193     \l 78.1212 694.42577     \l 78.37448 694.40639     \l 78.6391 694.40254     \l 78.91888 694.40639     \l 79.20999 694.42577     \l 79.51622 694.45576     \l 79.83754 694.50516     \l 80.1816 694.56902     \l 80.54076 694.64835     \l 80.65031 694.67451     \l 80.65031 683.70715     \l 80.54076 683.68105     \l 80.1816 683.59781     \l 79.83754 683.5378     \l 79.51622 683.48848     \l 79.20999 683.45456     \l 78.91888 683.43909     \l 78.6391 683.43135     \l 78.37448 683.43909     \l 78.1212 683.45847     \l 77.87924 683.48457     \l 77.64485 683.52232     \l 77.41798 683.5717     \l 77.19867 683.62392     \l 76.98703 683.68494     \l 76.77525 683.75264     \l 76.56737 683.82524     \l 76.36316 683.90463     \l 76.15906 683.98012     \l 75.95117 684.06335     \l 75.71677 684.15721     \pgfsetfillcolor{colb}%     \o     \f       \m 80.65031 689.19278     \l 80.65031 694.67451     \l 80.92256 694.74321     \l 81.3271 694.86035     \l 81.75052 694.9958     \l 82.20036 695.15163     \l 82.67673 695.32872     \l 83.1795 695.52519     \l 83.70882 695.74878     \l 84.26831 695.99463     \l 84.85811 696.2627     \l 85.48186 696.55788     \l 86.13591 696.88306     \l 86.13591 685.91187     \l 85.48186 685.59058     \l 84.85811 685.29533     \l 84.26831 685.02344     \l 83.70882 684.78148     \l 83.1795 684.55789     \l 82.67673 684.36142     \l 82.20036 684.18433     \l 81.75052 684.0285     \l 81.3271 683.89299     \l 80.92256 683.77591     \l 80.65031 683.70715     \pgfsetfillcolor{colc}%     \o      \f     \pgfsetlinewidth{2pt}% this is a problem when i scale the picture       \m 69.68298 690.30095     \l 69.68298 695.78268     \l 70.17444 695.84264     \l 70.63571 695.88812     \l 71.07422 695.91524     \l 71.4901 695.92976     \l 71.88321 695.93361     \l 72.25758 695.92297     \l 72.60909 695.90366     \l 72.94183 695.87366     \l 73.25937 695.832     \l 73.55804 695.78268     \l 73.84538 695.72556     \l 74.11375 695.66171     \l 74.37468 695.59395     \l 74.62419 695.52135     \l 74.86237 695.44586     \l 75.0929 695.36263     \l 75.31598 695.28323     \l 75.53151 695.19711     \l 75.74318 695.11388     \l 75.95117 695.03065     \l 76.15906 694.95132     \l 76.36316 694.87193     \l 76.56737 694.79259     \l 76.77525 694.72     \l 76.98703 694.65614     \l 77.19867 694.59222     \l 77.41798 694.539     \l 77.64485 694.49352     \l 77.87924 694.45193     \l 78.1212 694.42577     \l 78.37448 694.40639     \l 78.6391 694.40254     \l 78.91888 694.40639     \l 79.20999 694.42577     \l 79.51622 694.45576     \l 79.83754 694.50516     \l 80.1816 694.56902     \l 80.54076 694.64835     \l 80.92256 694.74321     \l 81.3271 694.86035      \l 81.75052 694.9958      \l 82.20036 695.15163     \l 82.67673 695.32872     \l 83.1795 695.52519     \l 83.70882 695.74878     \l 84.26831 695.99463     \l 84.85811 696.2627     \l 85.48186 696.55788     \l 86.13591 696.88306     \l 86.13591 685.91187     \l 85.48186 685.59058     \l 84.85811 685.29533     \l 84.26831 685.02344     \l 83.70882 684.78148     \l 83.1795 684.55789      \l 82.67673 684.36142     \l 82.20036 684.18433     \l 81.75052 684.0285      \l 81.3271 683.89299      \l 80.92256 683.77591     \l 80.54076 683.68105     \l 80.1816 683.59781     \l 79.83754 683.5378     \l 79.51622 683.48848     \l 79.20999 683.45456     \l 78.91888 683.43909     \l 78.6391 683.43135      \l 78.37448 683.43909     \l 78.1212 683.45847      \l 77.87924 683.48457     \l 77.64485 683.52232     \l 77.41798 683.5717     \l 77.19867 683.62392     \l 76.98703 683.68494     \l 76.77525 683.75264     \l 76.56737 683.82524     \l 76.36316 683.90463     \l 76.15906 683.98012     \l 75.95117 684.06335     \l 75.74318 684.14658     \l 75.53151 684.2288     \l 75.31598 684.31204     \l 75.0929 684.39526     \l 74.86237 684.4785     \l 74.62419 684.554     \l 74.37468 684.62659     \l 74.11375 684.69435     \l 73.84538 684.75821     \l 73.55804 684.81532     \l 73.25937 684.86472     \l 72.94183 684.90245     \l 72.60909 684.93631     \l 72.25758 684.95467     \l 71.88321 684.96631     \l 71.4901 684.96242     \l 71.07422 684.94794     \l 70.63571 684.91693     \l 70.17444 684.87534     \l 69.68298 684.81532     \pgfsetfillcolor{cold}%        \pgfusepath{stroke}%       \pgfsetlinewidth{10pt}% not fine big problem when I scale     \m 69.68298 676.50563      \l 69.68298 696.82983     \pgfusepath{stroke}        \end{tikzpicture}     \end{document}       ![enter image description here](http://i.stack.imgur.com/1ao4u.png) Because I don't understand some functions, I get a problem with the width of the lines. I can't scale properly the flag. I can find a personal method but it will be more easy to translate directly the postscript functions with pgf commands.


title: Can I reorder the fields in a biblatex bibliography?

text: I'm using the verbose bibliography style in biblatex, and would like to place the URL and DOI fields at the end of each entry, after the (cited on page ...) field rather than before it. Is there a way to reorder the fields of an existing style?


title: Lists inside ams proofs

text: I'm using amsart. I'm really annoyed that when I put a list inside a proof (and use a mark for the list), it is indented more than it should be. This is probably because the proof environment is implemented as a trivlist, and sublists often get more indentation. But the question is what do I do about it? I don't want to re-implement the proof environment... I may not get the details exactly the same.               \documentclass{amsart}     \begin{document}          \begin{list}{Mark}{}     \item Hi     \end{list}          \begin{proof}\     \begin{list}{Mark}{}     \item Hi     \end{list}     \end{proof}          \end{document}


title: Using both unicode and russian in tex source

text: _EDIT: In the end I ended up usingXeTeX (with auto-refreshing Evince viewer) - as suggested by @Andrey Vihrov. I am, however, accepting the most upvoted answer._ I am lost. Looked all over tex.stackexchange and can't find a good solution. Only suggestions to use babel or xetex... I want to be able to use BOTH russian (cyrillic) and unicode characters in my latex source files. For example, this does not compile:               In Dahl’s dictionary there is a similar sounding word “дуван”...     “C’est auprès de son père, écrivain de la nation pisane à la douane de Bougie, à     la fin du douzième siècle[todo], que le célèbre mathématicien Léonard Bonacci...      If I use babel and set it to russian for above, the compiler pukes on the other non-russian unicode chars. If I set babel to english - then the russian does not work:               Package inputenc Error: Unicode char \u8:д not set up for use with LaTeX.      Please note, I don't really care for "hyphenation" and such - I can do that myself manually if need be. I just want my source documents to compile into lagex. The problem is my main document is typeset in english, with a lot of different quotes that have languages ranging all across Europe. Is this possible with only LaTeX (dvi)? Or must I resort to something else? I would very much prefer to stay in LaTeX - as all my compile tools are setup for it. Either way, I would appreciate some advice.


title: the spell checker has no dictionaries lyx 2.1.0 (windows7)

text: yesterday my spellchecker have been worked fine, but today I opened it to complete my work and when I press F7 it tell me               the spell checker has no dictionaries      I use hinspell and lyx 2.1.0 and I taked some screenshot ![enter image description here](http://i.stack.imgur.com/hTn3B.png) ![enter image description here](http://i.stack.imgur.com/i2eLH.png) the problem is yesterday it have been worked but today no and I don't uninstalled any things from my computer :(. thanks.


title: How to do a conditional line break

text: I want to know how to do a conditional line break. Whenever the error message "There is no line to end here" comes, I want to disable the line break, otherwise to enable it, with a `\\` command or `\newline` command. As suggested, I am now explaining below my problem, with a minimal sample tex file. I am using two macros that allow me to "eat" a question or an answer, while allowing me to keep both of them together in the source. When I conduct an exam, I eat the answers and give only the questions, for example. This example results in the following error message:               LaTeX Error: There's no line here to end.        The reason is that I have the `\\ [1ex]` command at the beginning of the macro, `\ans`. If I remove the `\\ [1ex]` command from the macro `\ans`, the error goes away. Unfortunately, however, the answer does not begin on a new line for the first question. I would also like to disable the `\\ [1ex]` command when it is not required. For example, the behaviour is the same in the second question, whether or not this command is present. In fact, in some situations, this command could create unnecessary additional space.               \documentclass[12pt,a4paper]{article}     \newcommand{\quest}[1]{#1}     \newcommand{\eatquest}[0]{\renewcommand{\quest}[1]{}}     \newcommand{\ans}[1]{\\ [1ex] Answer: #1}     \newcommand{\eatans}[0]{\renewcommand{\ans}[1]{}}     \begin{document}     %\eatquest     %\eatans     \begin{enumerate}     \item     \quest{What is the effect of bad zeros?  How can it be overcome?     }     \ans{      This results in poor performance of the system.  The bad zeros       cannot be changed by feedback.  The only way to change them is to       redesign the system (not controller) itself.     }     \item      \quest{This question is on 2-DOF pole placement controller       design. Answer the following:      \begin{enumerate}     \item In the class, a method was proposed to handle unstable 2-DOF       controllers.  This method also has unstable pole-zero cancellation.       Why was this acceptable?      \end{enumerate}     }     \ans{A short answer is given now:     \begin{enumerate}     \item The pole and zero come for the same, ``identical'', source.  In       fact, one can even say that this is NOT a case of pole-zero       cancellation.      \end{enumerate}     }     \end{enumerate}     \end{document}


title: How to cite in LaTeX using Mendeley?

text: I know that it is required to first create a database of references stored in a `.bib` file. Mendeley exports my reference list in `.bib` format. But how can I know what to write in curly brackets in `\cite{}` to refer to a particular author? Do I need to keep the `.bib` file open and find the relevant name to cite? Or am I missing something? What is your recommendation for referencing in LaTeX?


title: How to define new cite command with specific citation format?

text: The standard `\cite{some_ref}` command produce citation text like `[1]`, but i'm looking for citation like `[1*]`. How can i define new cite command for such behavior?


title: How do I make gb4e.sty's commands overlay aware for beamer?

text: I use the `gb4e` package to set numbered examples. I want to put these on slides made with beamer. According to the beamer userguide I can make any command overlay specification aware using this in my preamble:               \renewcommand<>{⟨existing command name⟩}[⟨argument number⟩][⟨default optional value⟩]{⟨text⟩}      I tried to do this with `gb4e`'s \ex command. I tried the following:               \newcommand<>{\ex}[][]{\@ifnextchar [{\@ex}{\item}}      I thought that would be right, because gb4e defines \ex as follows:               \def\ex{\@ifnextchar [{\@ex}{\item}}      With that in my preamble my document doesn't compile. Am I misunderstanding something about how this works?


title: Error using longtable and xwatermark

text: I am experiencing some issues when I use `longtable` and `xwatermark`. If the table starts in page X and finishes two page later, I get an error : `! LaTeX Error: Something's wrong--perhaps a missing \item` And it points right at the end of the table. I think it is `xwatermark` that adds something whitin each page that annoys `pdftex`. If I ignore the error, the file is generated anyway. But I would like to have no error to be able to debug future version easily (I am beggining with LaTeX).               \documentclass[12pt,a4paper]{book}          \usepackage[english]{babel}     \usepackage{pdfpages}     \usepackage[textheight=2cm]{geometry}     \usepackage{longtable}     \usepackage{xwatermark}          \newwatermark[oddpages,fontfamily=,color=gray!25,angle=-90,scale=0.5,xpos=0.45\paperwidth,ypos=0]{\textsc{Confidential}}     \newwatermark[evenpages,fontfamily=,color=gray!25,angle=90,scale=0.5,xpos=-0.45\paperwidth,ypos=0]{\textsc{Confidential}}          \raggedbottom %to prevent Underfull \vbox (badness 10000) with the graphics          \makeatother          \begin{document}     \begin{center}         \begin{longtable}{|c|c|}             \hline             a & a \\             \hline             b & b \\             \hline             c & c \\             \hline             d & d \\             \hline             e & e \\             \hline             f & f \\             \hline         \end{longtable}     \end{center}     \end{document}


title: Remove vertical space around theorems

text: I'm very new to LaTeX (a couple of days ago I didn't know how to use `\newtheorem`) and was hoping someone could help me with the following problem. If I'm using `\usepackage{amsthm}`, how do I obtain control over the vertical gap between Theorems, Propositions etc and their respective proofs? In particular, I am looking for the proof to follow on like a normal line. This is the best I have come up with so far:               \usepackage{amthm}          \newtheoremstyle{newstyle}           {} %Aboveskip      {-.25pt} %Below skip     {\mdseries} %Body font e.g.\mdseries,\bfseries,\scshape,\itshape     {} %Indent     {\bfseries} %Head font e.g.\bfseries,\scshape,\itshape     {.} %Punctuation afer theorem header     { } %Space after theorem header     {} %Heading          \theoremstyle{newstyle}     \newtheorem{thm}{Theorem}[section]     \newtheorem{prop}{Proposition}[thm]     \newtheorem{lem}{Lemma}     \newtheorem{cor}{Corollary}          \newenvironment{pf}     {\n\textit{Proof.}\begin{mdseries}}     {\end{mdseries}}\      However, I have two main problems with it. Firstly, the `%Below skip` doesn't seem to give me much control - there's a pretty substantial jump between `{}` and when I type any negative value in. Secondly, the numbering is mucked up e.g. if I was to type `\begin{thm}...\end{thm}` and then `\begin{prop}...\end{prop}` (in section 1 say) I would get as my out put: > Theorem 1.1   >  Proposition 1.1.1 Thanks for any help.


title: 3 or 4 tikz figures side-by-side

text: How could I have a figure with 3 or 4 subfigures side-by-side in the same row? I've tried it once but the best I had was only 2 subfigures side-by-side in the same row. My code so far is:               \documentclass[12pt,a4paper,titlepage,twoside,openright]{article}     \usepackage[english,greek]{babel}     \usepackage{ucs}      \usepackage[utf8x]{inputenc}     \usepackage[usenames,dvipsnames]{xcolor}     \usepackage{tikz}     \usepackage{tkz-tab}     \usepackage{caption}     \usepackage{latexsym}     \usepackage{amssymb}     \usepackage{amsmath}     \usepackage{subcaption}           \begin{document}     \begin{figure}          \begin{subfigure}[b]{0.30\textwidth}     \centering             \begin{tikzpicture}      \draw (0,3) node[left] {$\text{A}$} to[out=0,in=90] (3,0) node[below]{$\text{B}$};         \draw[->, very thick] (-.1,0) -- (4,0) node[below] {$\text{αγαθό Α}$};         \draw[->, very thick] (0,-.1) -- (0,4) node[left]{$\text{αγαθό Β}$};     \draw[ForestGreen] (0,2)  node[left] {$\text{Η}$} to [out=0, in=90] (2,0)node[below]{$\text{Θ}$};     \draw[<-, Cyan] (45:2.1) -- (45:2.9);     \end{tikzpicture}         \label{fig:subfig8}               \caption{}            \end{subfigure}          \begin{subfigure}[b]{0.30\textwidth}     \centering                \begin{tikzpicture}     \draw (0,3) node[left] {$\text{A}$} to[out=0,in=90] (3,0) node[below]{$\text{B}$};         \draw[->, very thick] (-.1,0) -- (4,0) node[below] {$\text{αγαθό Α}$};         \draw[->, very thick] (0,-.1) -- (0,4) node[left]{$\text{αγαθό Β}$};     \draw[ForestGreen] (0,2.7)  node[left] {$\text{Γ}$} to [out=0, in=90] (1.5,0)node[below]{$\text{Δ}$};     \draw[<-, Cyan] (45:2.2) -- (45:2.9);     \end{tikzpicture}         \label{fig:subfig9}               \caption{}               \end{subfigure}          \begin{subfigure}[b]{0.35\textwidth}     \centering             \begin{tikzpicture}     \draw (0,3) node[left] {$\text{A}$} to[out=0,in=90] (3,0) node[below]{$\text{B}$};         \draw[->, very thick] (-.1,0) -- (4,0) node[below] {$\text{αγαθό Α}$};         \draw[->, very thick] (0,-.1) -- (0,4) node[left]{$\text{αγαθό Β}$};     \draw[ForestGreen] (0,1.5)  node[left] {$\text{E}$} to [out=0, in=90] (2.5,0)node[below]{$\text{Z}$};     \draw[<-, Cyan] (45:2.1) -- (45:2.5);     \end{tikzpicture}     \label{fig:subfig10}               \caption{}          \end{subfigure}     \captionof{figure}{τεχνολογία και στα δυο αγαθά} \label{fig:subfig1.a.4}      \end{figure}          \end{document}


title: Using TikZ, how can I bend the edge between two nodes in a tree?

text: I tried setting `edge from parent/.style={draw, bend left=60}`, but the line remains straight. What am I doing wrong?               \documentclass{article}     \usepackage{tikz}          \begin{document}     \begin{tikzpicture}[             every node/.style={                     draw,                     circle,             },             edge from parent/.style={                     draw,                     bend left=25,             },     ]     \node {}             child {node {}}             child {node {}};     \end{tikzpicture}     \end{document}


title: Axes label positions

text: I am using `pgfplots` to create simple theoretical graphs, so I use middle axis line style. What bothers me is that   * x axis label is _above_ instead of _below_ or _right_ of x axis and    * y axis label is _right_ instead of _left_ or _above_ of y axis. I have extensively studied pgfplots manual (I find it much more complex and disordered than `tikz` manual) and tried things to regulate this myself using stuff like `every axis x label/.style={at={(current axis.right)},anchor=north west}`, but to no avail. How can I solve this problem?               \documentclass{scrartcl}     \usepackage{pgfplots}          \begin{document}          \pgfplotsset{standard/.style={axis x line=middle,axis y line=middle,enlarge x limits=0.15,enlarge y limits=0.15}}          \begin{tikzpicture}     \begin{axis}[standard,xlabel=$t$,ylabel=$v$,xtick={0,1.7},xticklabels={0,$t_1$},ytick={0,21},yticklabels={0,$v_0$}]     \addplot[thick,color=black] coordinates { (0,21) (1.7,21) (8.7,0) };     \end{axis}      \end{tikzpicture}          \end{document}


title: Beamer continue block in next column

text: I am making a poster using the `beamer` document class. What I have done is that I divided the poster in two columns. In each column I do have a few blocks with content. What I want to do is to continue a block's body in the next column in case that it doesn't fit in the first one. Is that possible somehow? Below I provide a minimum example of how my configuration is.               \documentclass{beamer}     \usepackage{lipsum}          \newlength{\columnheight}     \setlength{\columnheight}{25cm}          \begin{document}          \begin{frame}[fragile]     \begin{columns}         % ---------------------------------------------------------%         % Set up a column          \begin{column}{.49\textwidth}             \begin{beamercolorbox}[center,wd=\textwidth]{postercolumn}                 \begin{minipage}[T]{.95\textwidth}                     \parbox[t][\columnheight]{\textwidth}{                         \begin{block}                             \lipsum[1-2]                         \end{block}                     }                 \end{minipage}             \end{beamercolorbox}         \end{column}         \begin{column}{.49\textwidth}             \begin{beamercolorbox}[center,wd=\textwidth]{postercolumn}                 \begin{minipage}[T]{.95\textwidth}                     \parbox[t][\columnheight]{\textwidth}{                     }                 \end{minipage}             \end{beamercolorbox}         \end{column}     \end{columns}     \end{frame}          \end{document}


title: LyX: How to get the Part name to print in headers

text: I have a LyX article, structured with Parts -> Sections -> Subsections, and I want to print the Part name in the document header. I am trying to get the part name with the following command, but it prints "Part"               \fancyhead[LE,RO]{\slshape \partname}      I have also read & tried this but my document doesn't compile. How can I simply get the part name within the LaTeX Preamble?


title: Error exporting LyX document to PDF

text: I'm using LyX on Windows (with Miktex installed) and I'm having problems exporting to PDF. I have successfully exported from LyX to PDF previously, on this computer, with this installation and in fact with a previous version of this file. When I try to export, I get an error about a missing $ (to the best of my understanding, this means I've messed up the LaTeX code somehow, but I'm not sure how I could have done that since I used strictly the LyX interface (so I blame the program, perhaps irrationally). The attached image shows the error message. The error message confuses me in part because it seems like the compiler has fixed things for me, but then I try to export again and find that things are not fixed. ![enter image description here](http://i.stack.imgur.com/0VOs0.png) The offending code (first of several offenses) is as follows: % Preview source code for paragraph 24               \begin{lyxlist}{00.00.0000}     \item [{     \[     \int_{0}^{\infty}Ve^{-\delta t}dt=\left[-\dfrac{V}{\delta}e^{-\delta t}\right]_{t=0}^{t=\infty}=\dfrac{V}{\delta}.     \]     }]~     \end{lyxlist}      In response to: how did I get here? I used the menus Insert -> Math -> Display Formula and then either typed the equation in (using standard keypresses) or pasted in using a cut and paste from an equation originally entered in inline mode. (I can't remember which is true for the offending equations; this is part of a much longer document that has been through multiple rounds of edits.)


title: Change \part counter to text: from I to ONE

text: I have included the `\part` command into my dissertation in `\documentclass{report}` which automatically uses Roman numerals: I, II, etc. as its counter. Is it possible to change these to text/string counters: ONE, TWO, etc.? Edit #1: I used the first answer, but both work. However, I thought that `\part` was all CAPS, but it's not! So I used this: `\usepackage{fmtcount} \renewcommand{\thepart}{\Numberstring{part}}` to give "Part One" "Part Two" etc.


title: How can I 'set off' a \lstinline portion of text?

text: See the question below:               \documentclass{article}     \usepackage{listings}          \begin{document}     Here is some text where I would like to talk about a particular     variable called \lstinline|var|.  How can I visually set off     \lstinline|var| as something special without being too ridiculous?     \end{document}      Current output as demonstration: ![output](http://i.stack.imgur.com/z6c0x.png) * * * How can I change inline listings without also changing the style for displayed listings?


title: Explicit frame break with beamer class

text: I am looking for a way to insert explicit frame breaks. I'd like to use the built-in frame title continuation feature. The only way I have found is to play with different values of the `allowframebreaks` option, but one doesn't really have much control of where the frame break is actually set.


title: Writing/Modifying Package

text: There is a package I'm trying to modify that essentially displays a grid. It uses counters to increment the distance. I want to change the distance each step instead of adding a constant value. In fact, I simply want to multiply the current distance by a constant. Anyways, I'm confused about how to use counters in TeX, compute things, and mixing LaTeX. When I try to use `\setcounter` or `\newcounter` in the package I get errors about redefinitions. I've tried to use the `calc` package but cannot get it to mingle with the text. The code               \advance\pos by 1      which instead of advancing it by 1 I want to advance it by 1, then 0.5, 0.25, etc... (it is in a loop) I've even tried to advance it by a constant 0.5 and it gives an error. (as if one can only advance by integer amounts) What I really want is some tutorial or guidance on what a package is and how to go about writing one. Is it TeX only and nothing special (I don't know much about TeX but have used LaTeX for typesetting for a several years)? Is there some special thing about packages? Can one mix TeX and LaTeX in a package? (doesn't seem so) What I really need to know is how to do simple programmatical things like loops, variables, calculations, etc... In the package I'm trying to modify I see things like `\@whilenum`, `\multiply`, `\divide`, etc. Which seem to correspond to the things I'm interested in but I can't find any references on the syntax or simple examples. Typing those into Google just returns a bunch of random packages that use them. What I need to accomplish now is two things. I need to "advance" a counter by a geometrical progression instead of arithmetical (multiply instead of add) and I need to linearly interpolate between two points instead of using a constant. In fact, in case anyone is interested, the package I'm trying to modify is http://kasper.phi-sci.com/gchords/ What I want to do is have the fret lines drawn like a real fretboard (or approximately). Make the width of the fretboard start lower and gradually increase (it should be independent of the number of frets). Allow one to color the dots and add fret markers (3, 5, 7, 9, 12,.... frets). I'd rather learn to write my own. Would be a piece of cake in something like C/C++ but I have no idea about TeX.


title: framed frame in beamer?

text: Below is an example of the layout I am trying to make for a `beamer` presentation: just a simple rounded black frame in which I could insert some contents (e.g. text or images). ![enter image description here](http://i.stack.imgur.com/NWbdr.jpg) I have looked at everything (`block` environment, `fancybox` package, ...) and I just cannot find a way to do it. If anyone has a suggestion, it would be great and much appreciated!


title: Permanent solution to sporadic breakdown of biber

text: Today, I encountered a breakdown of biber for the second time and with no apparent issue. This issue, as well as a fix, has been reported elsewhere reported here. I wanted to know if there is a permanent fix for this. For reference, I'using TL2012 with biber 1.2, but this has also occurred on my system previously, most recently in TL2011 with the previous biber. The problem did not arise after the update though and I don't think it's related to it.


title: Map with explaining pictures

text: I try to achive something like this: ![Map with explaining pictures](http://i.stack.imgur.com/6ZVxM.jpg) It is a photo I made in the local zoo. Sorry for the poor quality. I like the idea of a map containing explaining images and try to do the same with beamer. Unfortunately my output is very poor. My first attempt has the following code:               \PassOptionsToPackage{demo}{graphicx}     \documentclass[a4paper]{beamer}     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}[remember picture, overlay]       \node[] (image) at (current page.center) {\includegraphics[width=0.6\textwidth]{map.jpg}};       \begin{scope}[x={(image.south east)},y={(image.north west)}]         \node[] (descriptionimage) at (1.1, 0.25) {\framebox{\includegraphics[width=0.15\textwidth]{bird.jpg}}};         \node[] (markhere) at (0.7, 0.25) {};         \draw [thin, red, fill=red] (markhere) circle (4pt);         \path[->,red] (descriptionimage) edge [out=90, in=0] (markhere);       \end{scope}     \end{tikzpicture}     \end{document}      Since I don't use tikz very often I have no idea of how to draw elegant lines between the markhere node (maybe dotted lines) and how to get the small description text below the explaining image. Could anyone help me to find a more elegant solution and maybe find a more elegant code?