title: Determining what font series are available

text: I have a file `agaramond.map` which contains lines like the following:               pads8r AGaramond-Semibold "TeXBase1Encoding ReEncodeFont" <8r.enc <pads8a.pfb      Through trial and error, I have found out that I can select this particular semibold series with               \fontfamily{pad}\fontseries{sb}\selectfont      Is there an automated way of listing all combinations of `\fontfamily`, `\fontseries` and `\fontshape`? I don't know how to select a few of the cuts appearing in my .map files.


title: Dose .eps graph has fixed size? so \includegraphics[scale=0.7]{foo.eps} means 0.7 of that size

text: An .eps graph is too large to fit in a two column article. So I have to increase the font in the graph, and scale it down, otherwise the font is too small to see. I am thinking if the .eps graph has fixed size, then I can change that size and don't need to increase font and scale down.


title: New language - hyphenation

text: I'm working in a project (Ubuntu Manual, if you're curious) which requires TeX to create a PDF document. But when we have almost all translated, I've found that there wasn't an hyphenation pattern for my language (Asturian). Actually, there isn't almost anything. `:)` So, I started creating a new one, which involved some hard mining in obscure Internet dungeons to get some documentation on how to do that. `;)` My approach is creating a list of hyphenated words (etymological when I'm 100% sure, syllabic else) from our Aspell word list. When I've got a decent list, I'll use a hyphenation generator (I can't remember the actual name of the script) to have the Asturian hyphenation file, then I'll try and install under my TeX Live installation to test it, and then I'll upload it to TeX repositories. No, OpenOffice.org hyphenation is not an option (it still doesn't exist). My question is this: _Is there anything else I'm missing to have a working hyphenation for my language? Am I fully wrong and that won't work?_ Thank you in advance.


title: How can I change the order of an alphabetic enumeration?

text: For instance, in Welsh the alphabet starts a, b, c, ch, d, dd, etc. Is there a way to automatically alter the ordering of lists to match this?


title: PGFPlots: can a forced line break be added in the title command?

text: I have a some data plotted with `pgfplots`. I would like to make the title two lines. Can this be done? I tried adding `\\` in the title command but that did nothing. Additionally, I couldn't find anything in the manual. In my `axis` command, I have the option `title = {text \\ text}` where I want to split the title.               \documentclass[tikz]{standalone}     \usepackage{pgfplots}     \pgfplotsset{compat = 1.10}     \begin{document}     \begin{tikzpicture}     \begin{axis}[title = {text \\ text}]     \addplot[smooth, samples = 100, domain = 0:2] (\x, 2);     \end{axis}     \end{document}


title: Misplaced marginpar in twoside+twocolumn layout with pdfpages

text: `\includepdf` from the `pdfpages` package messes up the margin placement for this MWE:               \documentclass[10pt,a4paper,twoside,twocolumn]{article}          \usepackage[outer=6cm,             inner=2.5cm,             top=2cm,             marginparwidth=3cm,             marginparsep=1mm,             twoside=true             ]{geometry}     \usepackage{lipsum}     \usepackage{pdfpages}          \begin{document}          \includepdf{cover.pdf}          \lipsum     \marginpar{margin note}     \lipsum          \end{document}      where cover.pdf is a full one page pdf. What I mean by messing up is that the margin note is placed in the inner margin and not the outer one. I assume this is something along the lines of `\includepdf` not changing the odd/even counters correctly? Is there a better way to do what I am after?


title: Forcing footnotes to appear on the next page

text: I need a way to make some footnotes appear on page 2n+1 when the text that they're "attached" to occurs on page 2n. Is there something like a `\newpage` command that I could use in the middle of paragraph-style footnote (`para` option in `footmisc`) that would force the remaining footnotes for page 2n onto page 2n+1? Given that this is the opposite problem to what worries most people, it's probably necessary to understand what I'm working on, to see why I need this. I'm preparing a dual-language book (documenting a Native American language). The layout of the book is to be:   1. Upper portion even-numbered page: Kiowa   2. Upper portion odd-numbered page: English   3. Lower portion both pages: word-by-word translation A nice way to do this seems to be with `\usepackage[para,norule,hang]{footmisc}` together with the command:               \newcommand{\z}[2]{#1\symbolfootnote[0]{#1 \textit{#2}}}      (`\symbolfootnote[0]` gives you a footnote without a footnotemark; see code below. So, `\z` adds a Kiowa word to the main text and, at the same time, adds the word together with its English translation at the bottom of the page.) For this to work well, I want to split the footnotes (the Kiowa-English pairs) evenly between the even- and odd-numbered pages. But, of course, latex and `footmisc` want all the footnotes on the even-numbered page, where I put the Kiowa text, and next to none on the odd-numbered page, where I put the idiomatic English translation. Hence, the search for a `\newpage`-like command for use in the middle of paragraph-style footnote to force the remaining footnotes for page 2n onto page 2n+1. Below, I've put in an example based on some text I nabbed from wikipedia (not a very attentive translation, apologies to any Germans). Pages 2-3 show the problem. Pages 4-5 show what I'm actually aiming for (though the code I use to get there is messy, involving much copying, pasting, and manual fiddling). (1. I'm aware that I'm creating a memory-taxing document by putting in so many footnotes. I'm open to suggestions about other ways of doing this. 2. I'm also open to alternatives to the `\z` command. 3. I've used a parallel text package on a different project, but it won't work here, because it doesn't allow footnotes.) * * *               \documentclass[12pt]{article}     \usepackage[para,norule,hang]{footmisc}      \usepackage{etoolbox}     \makeatletter     \patchcmd{\@makefntext}{.5em}{0em}{}{}     \makeatother          \long\def\symbolfootnote[#1]#2{\begingroup%     \def\thefootnote{\fnsymbol{footnote}}\footnote[#1]{#2}\endgroup}          \newcommand{\z}[2]{#1\symbolfootnote[0]{#1 \textit{#2}}}          \begin{document}          WRONG VERSION ON PAGES 2, 3          RIGHT VERSION ON PAGES 4, 5          \newpage          \z{Der}{the} \z{Englisch-Spanische}{Anglo-Spanish} \z{Krieg}{war} \z{war}{was} \z{ein}{a} \z{milit\"arischer}{military} \z{Konflikt}{confict} \z{zwischen}{between} \z{dem}{the} \z{K\"onigreich}{kingdom} \z{Gro\ss britannien}{Great Britain} \z{und}{and} \z{dem}{the} \z{K\"onigreich}{kingdom} \z{Spanien}{Spain}. \z{Obwohl}{although} \z{die}{the} \z{ersten}{first} \z{Kampfhandlungen}{combat} \z{bereits}{already} \z{im}{in the} \z{Sommer}{summer} \z{1726}{1726} \z{in}{in} \z{der}{the} \z{Karibik}{Caribbean} \z{begannen,}{began} \z{wird}{was} \z{allgemein}{generally} \z{erst}{first} \z{mit}{with} \z{dem}{the} \z{Ausbruch}{outbreak} \z{der}{of the} \z{offenen}{open} \z{Konfrontation}{confrontation} \z{in}{in} \z{Europa}{Europe} \z{am}{on the} \z{11.}{eleventh}\ \z{Februar}{February} \z{1727}{1727} \z{von}{of} \z{einem}{a} \z{Krieg}{war} \z{gesprochen}{discussed}. \z{Der}{the} \z{formell}{formally} \z{unerkl\"arte}{undeclare} \z{Kriegszustand}{state of war} \z{zwischen}{between} \z{beiden}{both} \z{Staaten}{states} \z{bildete}{rose} \z{den}{to a} \z{H\"ohepunkt}{climax} \z{einer}{of a} \z{gesamteurop\"aischen}{pan-European} \z{Krise}{crisis}, \z{auf deren einer Seite}{on one side of which} \z{die}{the} \z{Herrenhausener}{Herrenhaus} \z{Allianz}{Alliance} \z{und}{and} \z{auf deren anderer}{on the other} \z{die}{the} \z{Partner}{Partners} \z{des}{of the } \z{Wiener}{Vienna} \z{Vertrages}{Treaty} \z{standen}{stood}. \z{Der}{the} \z{Ausbruch}{outbreak} \z{eines}{of a} \z{allgemeinen}{general} \z{Krieges}{war} \z{konnte}{could} \z{jedoch}{yet} \z{diplomatisch}{diplomatically} \z{verhindert}{prevented} \z{werden}{be}. \z{Im Wesentlichen}{substantially} \z{beschr\"ankten sich}{were restricted} \z{die}{the} \z{Kampfhandlungen}{combat} \z{auf}{to} \z{maritime}{maritime} \z{Operationen}{operations} \z{in}{in} \z{der}{the} \z{Karibik,}{Caribbean} \z{ohne}{without} \z{dass}{that} \z{es}{it} \z{dabei}{thereby} \z{zu}{to} \z{gr\"o{\ss}eren}{greater} \z{Seeschlachten}{sea battles} \z{gekommen w\"are}{came}. \z{In}{in} \z{Europa}{Europe} \z{war}{was} \z{die}{the} \z{erfolglose}{unsuccessful} \z{Belagerung}{siege} \z{des}{of the} \z{britischen}{British} \z{St\"utzpunktes}{base} \z{Gibraltar}{Gibraltar} \z{die}{the} \z{einzige}{only} \z{nennenswerte}{notable} \z{Auseinandersetzung}{confrontation}. \z{Der}{the} \z{englisch-spanische}{Anglo-Spanish} \z{Konflikt}{Conflict} \z{endete}{ended} \z{formell}{formally} \z{am}{on the} \z{9.}{ninth}\ \z{November}{November} \z{1729}{1729} \z{mit}{with} \z{dem}{the} \z{Abschluss}{signing} \z{des}{of the} \z{Vertrages}{Treaty} \z{von}{of} \z{Sevilla}{Seville} \z{und}{and} \z{der}{the} \z{Wiederherstellung}{restoration} \z{des}{of the} \z{Status}{status} \z{quo ante}{quo ante}. \z{Die}{The} \z{grunds\"atzlichen}{fundamental} \z{Differenzen}{differences} \z{beider}{of both} \z{Staaten}{states} \z{wurden}{were} \z{jedoch}{nonetheless} \z{nicht}{not} \z{beseitigt}{eliminated}, \z{was}{which} \z{kaum}{barely} \z{zehn}{ten} \z{Jahre}{years} \z{sp\"ater}{later} \z{zum}{to the} \z{Ausbruch}{outbreak} \z{eines}{of a} \z{weiteren}{further} \z{Krieges}{war} \z{f\"uhrte}{led}.          The Anglo-Spanish War was a military conflict between the kingdoms of Great Britain and Spain.  Although combat had already been met in the Caribbean in the summer of 1726, war was not openly spoken of until the outbreak of open confrontation in Europa,  on until 11 February 1727.  The formally undeclared state of war between the two states reached a climax in a pan-European crisis, pitting the members of the Herrenhauser Alliance against the partners of the Vienna Treaty.  The outbreak of full-scale war could nonetheless have been avoided by diplomatic means.  For the most part, combat was confined to maritime operations in the Caribbean, though without leading to any larger sea battles.  The only noteworthy conflict in Europe was the unsuccessful seige of the British base of Gibraltar.  The Anglo-Spanish conflict was formally ended on 9 November 1729 with the signing of the Treaty of Seville and the restoration of the status quo ante.  The fundamental differences between the two sides remained unresolved, however, which was to lead and further outbreak of war, less than ten years later.          \newpage          \z{Der}{the} \z{Englisch-Spanische}{Anglo-Spanish} \z{Krieg}{war} \z{war}{was} \z{ein}{a} \z{milit\"arischer}{military} \z{Konflikt}{confict} \z{zwischen}{between} \z{dem}{the} \z{K\"onigreich}{kingdom} \z{Gro\ss britannien}{Great Britain} \z{und}{and} \z{dem}{the} \z{K\"onigreich}{kingdom} \z{Spanien}{Spain}. \z{Obwohl}{although} \z{die}{the} \z{ersten}{first} \z{Kampfhandlungen}{combat} \z{bereits}{already} \z{im}{in the} \z{Sommer}{summer} \z{1726}{1726} \z{in}{in} \z{der}{the} \z{Karibik}{Caribbean} \z{begannen,}{began} \z{wird}{was} \z{allgemein}{generally} \z{erst}{first} \z{mit}{with} \z{dem}{the} \z{Ausbruch}{outbreak} \z{der}{of the} \z{offenen}{open} \z{Konfrontation}{confrontation} \z{in}{in} \z{Europa}{Europe} \z{am}{on the} \z{11.}{eleventh}\ \z{Februar}{February} \z{1727}{1727} \z{von}{of} \z{einem}{a} \z{Krieg}{war} \z{gesprochen}{discussed}. \z{Der}{the} \z{formell}{formally} \z{unerkl\"arte}{undeclare} \z{Kriegszustand}{state of war} \z{zwischen}{between} \z{beiden}{both} \z{Staaten}{states} \z{bildete}{rose} \z{den}{to a} \z{H\"ohepunkt}{climax} \z{einer}{of a} \z{gesamteurop\"aischen}{pan-European} \z{Krise}{crisis}, \z{auf deren einer Seite}{on one side of which} \z{die}{the} \z{Herrenhausener}{Herrenhaus} \z{Allianz}{Alliance} \z{und}{and} \z{auf deren anderer}{on the other} \z{die}{the} \z{Partner}{Partners} \z{des}{of the } \z{Wiener}{Vienna} \z{Vertrages}{Treaty} \z{standen}{stood}. \z{Der}{the} \z{Ausbruch}{outbreak} \z{eines}{of a} \z{allgemeinen}{general} \z{Krieges}{war} \z{konnte}{could} \z{jedoch}{yet}       \renewcommand{\z}[2]{#1}     \z{diplomatisch}{diplomatically} \z{verhindert}{prevented} \z{werden}{be}. \z{Im Wesentlichen}{substantially} \z{beschr\"ankten sich}{were restricted} \z{die}{the} \z{Kampfhandlungen}{combat} \z{auf}{to} \z{maritime}{maritime} \z{Operationen}{operations} \z{in}{in} \z{der}{the} \z{Karibik,}{Caribbean} \z{ohne}{without} \z{dass}{that} \z{es}{it} \z{dabei}{thereby} \z{zu}{to} \z{gr\"o{\ss}eren}{greater} \z{Seeschlachten}{sea battles} \z{gekommen w\"are}{came}. \z{In}{in} \z{Europa}{Europe} \z{war}{was} \z{die}{the} \z{erfolglose}{unsuccessful} \z{Belagerung}{siege} \z{des}{of the} \z{britischen}{British} \z{St\"utzpunktes}{base} \z{Gibraltar}{Gibraltar} \z{die}{the} \z{einzige}{only} \z{nennenswerte}{notable} \z{Auseinandersetzung}{confrontation}. \z{Der}{the} \z{englisch-spanische}{Anglo-Spanish} \z{Konflikt}{Conflict} \z{endete}{ended} \z{formell}{formally} \z{am}{on the} \z{9.}{ninth}\ \z{November}{November} \z{1729}{1729} \z{mit}{with} \z{dem}{the} \z{Abschluss}{signing} \z{des}{of the} \z{Vertrages}{Treaty} \z{von}{of} \z{Sevilla}{Seville} \z{und}{and} \z{der}{the} \z{Wiederherstellung}{restoration} \z{des}{of the} \z{Status}{status} \z{quo ante}{quo ante}. \z{Die}{The} \z{grunds\"atzlichen}{fundamental} \z{Differenzen}{differences} \z{beider}{of both} \z{Staaten}{states} \z{wurden}{were} \z{jedoch}{nonetheless} \z{nicht}{not} \z{beseitigt}{eliminated}, \z{was}{which} \z{kaum}{barely} \z{zehn}{ten} \z{Jahre}{years} \z{sp\"ater}{later} \z{zum}{to the} \z{Ausbruch}{outbreak} \z{eines}{of a} \z{weiteren}{further} \z{Krieges}{war} \z{f\"uhrte}{led}.     \newpage     {\it The Anglo-Spanish War was a military conflict between the kingdoms of Great Britain and Spain.  Although combat had already been met in the Caribbean in the summer of 1726, war was not openly spoken of until the outbreak of open confrontation in Europa,  on until 11 February 1727.  The formally undeclared state of war between the two states reached a climax in a pan-European crisis, pitting the members of the Herrenhauser Alliance against the partners of the Vienna Treaty.  The outbreak of full-scale war could nonetheless have been avoided by diplomatic means.  For the most part, combat was confined to maritime operations in the Caribbean, though without leading to any larger sea battles.  The only noteworthy conflict in Europe was the unsuccessful seige of the British base of Gibraltar.  The Anglo-Spanish conflict was formally ended on 9 November 1729 with the signing of the Treaty of Seville and the restoration of the status quo ante.  The fundamental differences between the two sides remained unresolved, however, which was to lead and further outbreak of war, less than ten years later.}     \renewcommand{\z}[2]{\symbolfootnote[0]{#1 \textit{#2}}}     \z{diplomatisch}{diplomatically} \z{verhindert}{prevented} \z{werden}{be} \z{Im Wesentlichen}{substantially} \z{beschr\"ankten sich}{were restricted} \z{die}{the} \z{Kampfhandlungen}{combat} \z{auf}{to} \z{maritime}{maritime} \z{Operationen}{operations} \z{in}{in} \z{der}{the} \z{Karibik}{Caribbean} \z{ohne}{without} \z{dass}{that} \z{es}{it} \z{dabei}{thereby} \z{zu}{to} \z{gr\"o{\ss}eren}{greater} \z{Seeschlachten}{sea battles} \z{gekommen w\"are}{came} \z{In}{in} \z{Europa}{Europe} \z{war}{was} \z{die}{the} \z{erfolglose}{unsuccessful} \z{Belagerung}{siege} \z{des}{of the} \z{britischen}{British} \z{St\"utzpunktes}{base} \z{Gibraltar}{Gibraltar} \z{die}{the} \z{einzige}{only} \z{nennenswerte}{notable} \z{Auseinandersetzung}{confrontation} \z{Der}{the} \z{englisch-spanische}{Anglo-Spanish} \z{Konflikt}{Conflict} \z{endete}{ended} \z{formell}{formally} \z{am}{on the} \z{9.}{ninth}\ \z{November}{November} \z{1729}{1729} \z{mit}{with} \z{dem}{the} \z{Abschluss}{signing} \z{des}{of the} \z{Vertrages}{Treaty} \z{von}{of} \z{Sevilla}{Seville} \z{und}{and} \z{der}{the} \z{Wiederherstellung}{restoration} \z{des}{of the} \z{Status}{status} \z{quo ante}{quo ante} \z{Die}{The} \z{grunds\"atzlichen}{fundamental} \z{Differenzen}{differences} \z{beider}{of both} \z{Staaten}{states} \z{wurden}{were} \z{jedoch}{nonetheless} \z{nicht}{not} \z{beseitigt}{eliminated} \z{was}{which} \z{kaum}{barely} \z{zehn}{ten} \z{Jahre}{years} \z{sp\"ater}{later} \z{zum}{to the} \z{Ausbruch}{outbreak} \z{eines}{of a} \z{weiteren}{further} \z{Krieges}{war} \z{f\"uhrte}{led}          \end{document}


title: How to encourage TeX as a homework medium

text: I have been trying to encourage my students to use TeX in writing up homework, especially in early math major courses, like intro to proofs, where the typesetting is not too arduous. I have had very limited success with students taking it up. Does anyone else encourage/require assignments to be typeset? What strategies have worked best for you?


title: How do I find out what font is used in this picture/text

text: Could anyone help me with identifying the bellow font? ![enter image description here](http://i.stack.imgur.com/RaCpC.png)


title: Gradient color on TikZ tree

text: `Mindmap` creates connection line composed of the parent/child colors. Is it possible to apply such effect on normal parent/child trees to connect the parent and child nodes with a gradient of their corresponding colors? In a basic example of               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{shapes,trees}     \begin{document}          \begin{tikzpicture}     \node[circle,fill=blue] (par) at (0,0) {Parent}         [level distance=4cm,sibling angle=25,clockwise from=80]         child {node[circle,fill=red] (child1) {Child 1}}         child {node[circle,fill=yellow] (child2) {Child 2}}         child {node[circle,fill=green] (child3) {Child 3}};     \end{tikzpicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/Pldu5.png) How to make a gradient of blue ... red for the line connecting the parent to the first child, blue ... yellow for the second child, etc.


title: MTPro2 and amsbook conflict

text: I am using the MTPro2 fonts with `amsbook` class. However something strange happens when I activate the `mtpfrak` option for the alternate fraktur fonts. LaTeX simply ignores it! That is I see the old AMS fraktur fonts. If I change the document class to `memoir`, `report` or `book` the problem goes away! Has anyone seen this problem before?


title: Intelligent paragraph reflowing in vim?

text: I'm not sure whether this is an appropriate question for tex.SE. If you think questions like this should not be asked here, please voice you concern. If necessary I'll open a question on meta. For readability I like to keep line lengths in my source files at about 80 characters. Vim has the nice shortcut `gqap` that reflows the current paragraph to fit within 80 characters without wasting space with lines that are too short. It even keeps indentation. Unfortunately it considers paragraphs to be marked by empty lines and considers everything that is not separated by an empty line to be in the same paragraph. In particular any equations (started with `\[` or `\begin{...}`) are always considered to be part of the paragraph and reflowed. Is there any way to have vim handle LaTeX syntax more intelligently in this respect? Are there any other text editors which can to that? (I know that I can highlight only the text and then use `gq`, but if possible I'd like to have a single command to reflow a paragraph without the need to manually mark what a paragraph is.)


title: How to add some visual style and pizzazz to course notes?

text: LaTeX is wonderful for writing mathematical papers, but while the output is perfectly typeset it is not visually very exciting. And although it may just be "familiarity breeds contempt", I am basically fed up of the CMR fonts. I want to write some course notes that don't look like a dry mathematical paper, but rather have a bit of additional "pizzazz" to relieve the visual monotony for the students, and to provide subtle visual assistance in navigating the notes. It's not that I want the course notes to look like a 1000-page Calculus text or a ".. For Dummies" book where the entire book is a mass of cute little icons, call-outs, footnotes, marginal comments, cartoons etc, but just something that gives some attractive chapter and section headings, a few distinct ways to frame material that is either background, or advanced or otherwise to be separated from the main flow. I've searched a bit and the most promising thing to explore further that I have come across so far is a package called "memoir". Does anyone else have any recommendations?


title: References in Chapter Titles

text: I am currently writing a manuscript using `\documentclass{book}`. I would like to devote one of the chapters in the manuscript to a proof of an earlier result. I have named the Chapter:               \chapter{Proof of Theorem \ref{Theorem1}}      and the actual chapter itself (including the chapter name in the table of contents and the chapter title) looks fine. I have include an image below. ![enter image description here](http://i.stack.imgur.com/aZvq1.jpg) However, in the even numbered pages of the chapter at the top right-hand side of the page is an all-capitalized version of the chapter title, and the reference there does not seem to go through: ![enter image description here](http://i.stack.imgur.com/SOCZb.jpg) I have compiled the code multiple times, so I am sure it is not a compiling error. Is there any way I can keep the Theorem reference in the title and have it properly show up at the top of the even pages of the chapter?


title: When using unicode-math, how do I get the original calligraphic alphabet back?

text: I am happy with the great majority of what `unicode-math` does. But at times I find that I prefer a symbol the way it was before. With `\varnothing` and `\complement`, for example. In those cases I was able to save them under a different name before loading `unicode-math`, but this doesn't always work. Right now I'm trying to access the `\mathcal` alphabet from plain LaTeX. How might I accomplish this? * * * **Additional Question** I've been looking through `unicode-math`, trying to figure out where exactly the original `\mathcal` alphabet gets discarded, but I eventually gave up. It would be interesting if someone could explain:   * how/where the original `\mathcal` font is defined anyway, and   * what kind of 'switch' is thrown by `unicode-math` that makes it unavailable.


title: Surface of Revolution

text: ![enter image description here](http://i.stack.imgur.com/XfR31.gif)how to draw using surface of revolution tikz or pgfplots?               \documentclass{article}     \usepackage{tikz,pgfplots}          \begin{document}     \begin{tikzpicture}          \end{tikzpicture}     \end{document}      I am not able to reproduce a surface like this. Can anyone help me? ![enter image description here](http://i.stack.imgur.com/SSuI0.gif)


title: Adjusting space before and after a latex beamer block

text: I wanted to ask you if there is a better way to adjust the spacing between two `beamer` blocks:               \documentclass[slidestop]{beamer}     \usetheme{Madrid}     \begin{document}          \addtobeamertemplate{block begin}{\vspace*{-3pt}}{}     \addtobeamertemplate{block end}{}{\vspace*{-3pt}}          \begin{frame}{Test}     \begin{block}{block 1}     Test     \end{block}     \begin{block}{block 2}     Test     \end{block}     \begin{block}{block 3}     Test     \end{block}     \end{frame}     \end{document}


title: What are the steps for installing 'xcharter'?

text: I would like to install and use the `xcharter` package, but am unclear on the steps involved. There are what appear to be instructions provided with the package, but I don't understand them. Is it sufficient to install the package using Tex Live Utility (on OS 10.9), or are there additional steps required to build and place fonts in various directories? Will the installation disturb any existing fonts?


title: Place '~' symbol as overarrow

text: I would like to know how to place `~` or `-` on top of a character. I believe I could do this with the `\overrightarrow{character}` command for right arrows. But how do I do this in general?


title: How to add customized created/modified date to the PDF properties information when using hyperref package?

text: Having looked through some posts, I still could not find a solution to this issue. As `\pdfinfo{...}` is not working while using the package `hyperref`. So I was wondering, how to invoke the commands such as `/CreationDate` `/ModDate` within `\hypersetup` The following codes will not work while the package `hyperref` is loaded.               \pdfinfo{           /Author {Nicola Talbot}           /Title  {Creating a PDF document using PDFLaTeX}           /CreationDate {D:20040502195600}           /ModDate {...}           /Keywords {PDF;LaTeX}            }


title: no old-style numbers with small caps and tgpagella

text: `tgpagella` activates old-style numbers with small caps. I'm looking for a possibility to disable old-style numbers (as in the other cases like `textbf`, etc.)               \documentclass{article}     \usepackage{tgpagella}     \begin{document}     0123456789          \textsc{0123456789}     \end{document}


title: Using #1 literally in a macro

text: In this post I found some working code that I am now using quite frequently:               \documentclass{article}     \usepackage{pgfplotstable}     \begin{document}     \pgfplotstableread{       num       value       1         2       2         5       1         3       3         2       1         4       2         1     }\data     \pgfplotstabletypeset[row predicate/.code={%       \pgfplotstablegetelem{#1}{num}\of{\data}       \ifnum\pgfplotsretval=1\relax       \else\pgfplotstableuserowfalse\fi}]{\data}     \end{document}      However, I would like to make a \newcommand that implements this, but where the table it should use (\data in this example) is an argument. Of course, this conflicts with #1's other meaning, being the first argument of my function. Is there a remedy?


title: How to save a figure produced by tikz save/export as JPG/PNG file

text: I have created various plots using `pgfplots` package for my thesis. Now I would export them in jpg or png format. Does it exist a way to achieve this porpouse?


title: How to adjust the beamer block width to the size of its content?

text: I would like to define a nice `beamer` block environment with the following properties a) it is always centered on the slide (horizontally) b) it is only slightly longer than its content The aim is to put an equation inside the block and use the block as a highlighter for this equation. So in short, I want a block environment that adjusts its width to the content it contains. Does anybody know a solution? This would be an example of what I want to achieve automatically:               \documentclass[slidestop]{beamer}     \usetheme{Madrid}     \begin{document}          \begin{frame}{Test}     \abovedisplayskip=0pt           \begin{center}     \begin{minipage}{0.2\textwidth}     \begin{block}{}     \begin{gather*}     c^2=a^2+b^2     \end{gather*}     \end{block}     \end{minipage}     \end{center}          \end{frame}     \end{document}      The environment should work similar like this manual hack with the improvement that the `0.2\textwidth` is adjusted nicely according to the actual width of the formula. Edit: I am searching for a nice realization of the following workaround:               \documentclass[slidestop]{beamer}     \usetheme{Madrid}     \usepackage{calc}               \newcommand{\gatherblock}[1]{%     \vspace*{-5pt}     \begin{center}     \begin{minipage}{\widthof{$#1$}}     \begin{block}{}     \abovedisplayskip=0pt      \vspace*{-1pt}     \begin{gather*}     #1     \end{gather*}     \end{block}     \end{minipage}     \end{center}}               \begin{document}     \begin{frame}{Test}          \gatherblock{c^2=a^2+b^2}          \end{frame}


title: ConTeXt equivalent of latexdiff

text: I was just wondering if anyone knows of a ConTeXt equivalent to `latexdiff`? For those not familiar with `latexdiff`: it is a Perl script that marks up differences between 2 latex files. It is included with many LaTeX distributions. It is used as follows:               $ latexdiff old.tex new.tex > diff.tex      Then when you compile the output `diff.tex`, it shows added text in blue, and deleted text in red strikethrough. E.g., http://haakoh.at.ifi.uio.no/latexdiff/ Does anyone knows of a ConTeXt tool that achieves something similar? If not, can anyone offer any pointers on how the `latexdiff` Perl script might be leveraged/ported to a "`contextdiff`" equivalent?


title: Does memoir class have various page designs built in?

text: I wasn't able to find an answer to this question myself - are there any built- in page designs (styles) in `memoir` class? If so, what are they and how do I set them in the document to see how each one of them looks?


title: Ugly-looking integral signs in ConTeXt MkIV

text: A few days ago, I decided to try out ConTeXt (just for fun), but ran into the following problem. Running the 'context' command on               \setuppagenumbering[location=]     \starttext     \startformula       \int_a^b f(x) \, dx       \qquad       \iint_D f(x,y) \, dx \, dy     \stopformula     \stoptext      produces the following output, with very strange spacing: ![Strange integrals](http://i.stack.imgur.com/Uga5t.jpg) (With 'texexec' things look normal, though.) Why is this, and how can it be fixed? I'm a total newbie when it comes to ConTeXt, so apologies in advance if I'm missing something obvious... System info: Arch Linux with most texlive packages installed, but running a locally installed ConTeXt in my home directory, as described on the ConTeXt wiki. I tried both beta (current version: 2013.11.16 12:43) and stable (current version: 2013.05.28 00:36), with the same results.


title: Wider caption for listing using multicol

text: I am using the `multicol` and `listings` packages. I would like to have the caption spread across the entire listing for multi-column listings. Here is a MWE of what I am attempting, however the output is undesirable because the caption gets placed in the first column only.               \documentclass{article}     \usepackage{listings}     \usepackage{multicol}          \begin{document}          \begin{lstlisting}[caption={A longer caption that ideally spans all the columns in the listing, otherwise it just does not look right if you get what I mean}, multicols=3]          text not important     text not important     text not important     text not important     text not important     text not important          text not important     text not important     text not important     text not important     text not important     text not important          \end{lstlisting}          \end{document}


title: How can I place an external image of given dimensions at the center of a pgfplot?

text: Let's say I would like to place a certain picture at the center of my plot, such that it matches some given dimension on the scale of my `pgfplot`. I was thinking at first that I could include an external image in the standard procedure, with the key `axis equal image`. However, I would like to draw around the image in the middle, so that the axes need to remain scalable. I think that the latter option would thus not work. To give you a more concrete example, I want to draw planar orbits around the Moon. To give a sense of scale, I want to draw the Moon in the middle of the plot, and then draw any kinds of orbit. Say I want to draw a simple circular orbit of 200 km around the Moon, like this:               \documentclass{article}          \usepackage{pgfplots}     \pgfplotsset{compat=1.10}          \begin{document}         \begin{tikzpicture}             \pgfmathsetmacro{\rMoon}{1737.4}             \pgfmathsetmacro{\rOrbit}{200}             \begin{axis}[                 axis equal                 ]                 \addplot[samples=100, domain=0:2*pi]                  ({(\rMoon+\rOrbit) * cos(deg(x))}, {(\rMoon+\rOrbit) * sin(deg(x))});              \end{axis}         \end{tikzpicture}     \end{document}      The output is: ![Orbit](http://i.stack.imgur.com/muTtw.png) How can I place a picture of the Moon in the middle? The radius of the Moon is 1737.4 km. You can use the following asset: ![Moon](http://i.stack.imgur.com/mPjR0.png)


title: How to create a numbered list of references when using verbose-trad1 style with the biblatex package?

text: I am using the biblatex package in the verbose-trad1 style. When generating a bibliography at the end of my chapter, all references are listed in alphabetical author, but they are NOT numbered. Is there a way to have all references numbered? That way, the readers would also have an idea of the number of references in the bibliography.


title: Problem with renewcommand?

text: I want to change the command `\textsubscript` to `\tsub` by writing the following line in the preamble:               \renewcommand{\textsubscript}{\tsub}      but, unfortunately, it doesn't work !


title: how to add month for apa6 style in bibtex @inproceedings entry

text: I'm building my CV in latex and I need to add conference presentations in apa6 style. The only problem is that the output does not include the (year, month) format, which is required for the apa6 style.               @INPROCEEDINGS{Waltzsy2006implicit,     author = {Waltz, C},     title = {\emph{Implicit Attitude Assessments}},     address = {Paper presented at the..., Chicago, IL},     year = {2006},     month = {November},     }      This is the resulting output: ![enter image description here](http://i.stack.imgur.com/1vGCV.png) I tried to solve this problem by adding the month to the year field               year = {2006, November},         which only apparently fixed the problem, because when I added another citation with the same month, then it added a "a" and "b" at the end the month: ![enter image description here](http://i.stack.imgur.com/5s34L.png) Any suggestions as to how deactivate the "a..." function or add the month to the year field to meet the apa6 standard would be much appreciated.


title: alignment problem

text: I have the following:               \documentclass{article}     \usepackage{nicefrac}     \usepackage{amsmath,amssymb}     \begin{document}          \begin{align*}     f_X(x)&=\frac{1}{2 \pi} \exp ( -x^2/2 )   &\forall x \in \mathbb{R} \\     g(x)&=(x^2-1)/2   &\forall x \in \mathbb{R} \\     \intertext{ so}     g'(x) &= x\\     g^{-1}(y)&= \pm \sqrt{2y+1}\\     \intertext{ Then}     f_Y(y) &= \frac{f_X(g^{-1}(y))}{g'(g^{-1}(y))}\\     &=  \frac{1}{|\pm \sqrt{2y+1}|}   \frac{1}{\sqrt{2 \pi}} \exp \left( -y-\nicefrac{1}{2} \right)\\     \intertext{where the support for $f_Y$ is $ y \in [(0-1)/2, \infty) = [-\nicefrac{1}{2} , \infty)$}     &= \frac{2}{\sqrt{2y+1}\sqrt{2 \pi}}  \exp \left( -y-\nicefrac{1}{2} \right)  &\forall y \in  [-\nicefrac{1}{2} , \infty)      \end{align*}          \end{document}      The problem is that I would like all the `\forall` to be aligned, but only the top 2 are, and the one on the bottom line is positioned to the left of the 2 at the top. I was under the impression that using `&` would cause the relevant items immediately following to be aligned, which is working fine for the `=` but not the `\forall`s.


title: Problem with display graphic

text: I'm writing document in Latex with Texmaker. My document looks like something that:               \subsection{Title 1}     \qquad Some text....     \\ Some text....          Some text:     \begin{itemize}     \item item1     \item item2     \item item3     \item item4     \end{itemize}          Some text:     \begin{itemize}     \item item1     \item item2     \item item3     \item item4     \end{itemize}          Some text...          \begin{figure}[h]     \centering     \includegraphics{czynnosci_serwer.jpg}     \caption{text}     \end{figure}     \begin{figure}[h]     \centering     \includegraphics[scale=0.7]{czynnosci_klient.jpg}     \caption{text}     \end{figure}           \newpage     \subsection{Title 2}     \qquad Some text          \begin{figure}[h]     \includegraphics[scale=0.8]{klasy_serwer.jpg}     \caption{text}     \end{figure}     \begin{figure}[h]     \includegraphics[scale=0.75]{klasy_klient.jpg}     \caption{text}     \end{figure}          \newpage     \subsection{Title 3}     \qquad some text      And the problem is that graphics are put after all text, on the last page. I don't know where is a problem. I always put image in this way and have no problem. My header:               \documentclass[12pt, a4paper]{mwart}     \usepackage{polski}     \usepackage[utf8]{inputenc}     \usepackage{ftnxtra}     \usepackage{graphicx}     \usepackage{listings}


title: How to nameref to partial part of a ref

text: For example, I have :               \section {first section}     \label{sec:first}\     ...      then I want to refer to the first section, I use it as below:               Please look at `\nameref{first}` for details.       I will get: > Please look at first section for details. But if I only want this (without section, only partial part of the reference): > Please look at first for details. How should I do to get it? I guess a better example would be:               \section{data.h File Description}      \label{sec:datah}     ....     Details are given in \nameref{datah}.        What I really want is: > Details are given in data.h. But I get: > Details are given in data.h File Description. I hope this example is clear enought. Is there any way to do this?


title: Why does the pdf file is successfully generated while the compilation ends with warnings in beamer using Kile?

text: I don't know what is going with Kile when I use the document class beamer. The pdf can successfully be generated after the compilation but I get many error messages. Please here a minimal working environment:               \documentclass{beamer}     \usepackage[utf8]{inputenc}     \usepackage{default}          \begin{document}     \begin{frame}      Presentation with beamer.     \end{frame}     \end{document}      I get the following after the compilation:               [PDFLaTeX] example.tex=>example.pdf(pdflatex)     [PDFLaTeX] finished with exit code 1     ./example.tex:10:Font shape 'OT1/cmss/m/n' in size <4> not available (Font) size <5> substituted on input line 10...     [PDFLaTeX] 0errors, 2warnings, 0badboxes      I have already took the time to see in forums how so solve this problem but I didn't succeed! Any help would be more than appreciated! Thank you.


title: Texnicle on mac can't find file with pdflatex

text: I've been looking for couple hours now and I haven't found a solution for my problem yet. I am trying to build a PDF using Texnicle. I have set up pdflatex and its always giving me this:               This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) restricted \write18 enabled.     Emergency stop.     <*> samplefile          !  ==> Fatal error occurred, no output PDF file produced!     Transcript written on texput.log.     entering extended mode     ! I can't find file `samplefile'.     <*> samplefile          (Press Enter to retry, or Control-D to exit)     Please type another input file name     ! Emergency stop.     <*> samplefile          !  ==> Fatal error occurred, no output PDF file produced!     Transcript written on texput.log.     ***------------------------------------------------------------     *** Running bibtex on samplefile ...     ***------------------------------------------------------------     Compile aborted.     I couldn't open file name `samplefile.aux'     *** pdflatex.engine has completed.      Any ideas? When I use console or Latexian, it's all fine! So long...


title: titling: Renewing \maketitle with defaults from manual causes compilation error though just using the defaults does not

text: `titling` includes this helpful information on page 4: > The `\maketitle` command as defined by the titling package is essentially >   >   >     \renewcommand{\maketitle}{% >     \vspace*{\droptitle} >     \maketitlehooka >     {\pretitle \title \posttitle} >     \maketitlehookb >     {\preauthor \author \postauthor} >     \maketitlehookc >     {\predate \date \postdate} >     \maketitlehookd >     } >   However, the following document will not compile:               \documentclass{article}     \usepackage{titling}     \renewcommand{\maketitle}{% cf. p.4 of titling's documentation       \vspace*{\droptitle}       \maketitlehooka       {\pretitle \title \posttitle}       \maketitlehookb       {\preauthor \author \postauthor}       \maketitlehookc       {\predate \date \postdate}       \maketitlehookd     }       \title{Some title}       \author{My Name}          \begin{document}       \maketitle     \end{document}      The error is:               ! Argument of \posttitle has an extra }.     <inserted text>                      \par      l.35   \maketitle          ?       I can work around the problem with the following code:               \renewcommand{\maketitle}{% cf. p.4 of titling's documentation       \vspace*{\droptitle}       \maketitlehooka       {\pretitle \title \posttitle{}}       \maketitlehookb       {\preauthor \author \postauthor{}}       \maketitlehookc       {\predate \date \postdate{}}       \maketitlehookd     }      Is this a bug in the documentation, the package or the end-user? Please elaborate. If somebody can point me to a duplicate, I'll happily delete this!


title: How to wrap section?

text: I would like to wrap the section. How can I do it? ![enter image description here](http://i.stack.imgur.com/gZMYD.jpg) The following code is my MWE.               \documentclass[b5paper,10pt,twoside,parskip=half,numbers=noenddot,bibliography=totoc]{scrbook}     %bibliography=totocnumbered numera la bibliografia          \newcommand{\Aref}[1]{Appendix  \ref{#1}} %\thechapter     \def\chapterautorefname{Chapter}     \usepackage{xspace}          %\usepackage[cam,a4,center,pdftex]{crop} %for markings     \usepackage[squaren]{SIunits} % provide \micro command     \usepackage{amsmath,amssymb}             % AMS Math     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage{units} % nicefrac     \usepackage[italian]{babel} %modifica cesare     \usepackage{eurosym}     \usepackage{booktabs}     %\usepackage{csquotes}     %\usepackage[protrusion=true,expansion]{microtype}backend=biber,     %\usepackage[style=numeric-comp,citestyle=numeric-comp,bibstyle=numeric-short,sorting=none,natbib=true,backref=true,hyperref=true,autocite=superscript,maxnames=99,maxcitenames=2,isbn=false,url=false,eprint=false,firstinits=true,mcite,subentry]{biblatex}     %\usepackage[final]{microtype}     %\usepackage[superscript]{cite}%modifica cesare     \usepackage{microtype}     \usepackage{enumerate}     \usepackage{graphicx}     \usepackage{subfig}     %\usepackage[danish]{babel}     \usepackage{latexsym,amssymb,amsmath,verbatim}     \usepackage{array,booktabs}     \usepackage{placeins}      \let\oldsection=\section % gemmer den gamle definition      \renewcommand\section{\FloatBarrier\oldsection}     \usepackage{caption}      \captionsetup{font=small,labelfont=bf}     %\usepackage{cite}     %\usepackage{hyperref}          %\DeclareFieldFormat{volcitevolume}{\bibstring{volume}\ppspace\RN{#1}}     %\AtEveryCitekey{\clearfield{institude}}     %\renewcommand{\cite}{\supercite}     %\renewcommand{\citep}{\supercite}     %\renewcommand{\citet}[2][]{\citeauthor{#2}\supercite{#2}\ifstrempty{#1}{}{, #1}}     % \DeclareFieldFormat{bibentrysetcount}{\newline(\mknumalph{#1})\addhighpenspace}     \usepackage{makeidx}     \usepackage{longtable}     \usepackage{calc}     %\usepackage{etoolbox}     \usepackage{leftidx}     \makeindex          \usepackage{booktabs}     \setlength{\heavyrulewidth}{1.2pt}     \usepackage{pdfpages}     \usepackage[left=3.15cm,right=2.55cm,top=1.8cm,bottom=0.89cm,includefoot,includehead,headheight=13.6pt]{geometry}     \usepackage{setspace}     \setstretch{1.1}     \usepackage[nottoc, notlof, notlot]{tocbibind}     \usepackage[nohints]{minitoc}     \setcounter{minitocdepth}{2}               \mtcindent=15pt     \renewcommand{\ptcfont}{\small\rm}     \renewcommand{\ptcCfont}{\small\bm}     \renewcommand{\ptcSfont}{\small\rm}     \renewcommand{\ptcSSfont}{\footnotesize\rm}     \renewcommand{\ptcSSSfont}{\footnotesize\rm}     % Use \minitoc where to put a table of contents     %\usepackage{cm-super}     \RequirePackage{fix-cm}          \usepackage{type1cm}     \usepackage{titlesec}          \usepackage{aecompl}     \usepackage{xargs}     % Glossary / list of abbreviations          \usepackage[intoc]{nomencl}     \renewcommand{\nomname}{List of Abbreviations}     %makeindex Thesis.nlo -o Thesis.nls          \makenomenclature     \usepackage{pgf}%,pgfarrows,pgfnodes,pgfautomata,pgfheaps,pgfshade}     \usepackage{tikz}     \usetikzlibrary{calc,decorations,decorations.pathmorphing,arrows,matrix,positioning,patterns}     \usepackage[version=3]{mhchem}% use \ce for chemistry     \usepackage{array}          % My pdf code               \usepackage{graphicx}     \DeclareGraphicsExtensions{.jpg}     \DeclareGraphicsExtensions{.pdf}          \graphicspath{{.}{images/}}          % Links in pdf     \usepackage{xcolor}     \selectcolormodel{cmyk}     \setcounter{secnumdepth}{3}     \setcounter{tocdepth}{2}          % Some useful commands and shortcut for maths:  partial derivative and stuff          \newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}}     \def\abs{\operatorname{abs}}     \def\argmax{\operatornamewithlimits{arg\,max}}     \def\argmin{\operatornamewithlimits{arg\,min}}     \def\diag{\operatorname{Diag}}     \newcommand{\eqRef}[1]{(\ref{#1})}          \titlespacing*{\chapter}{0cm}{-1.cm}{-40pt}%pbk     %\titleformat{\chapter}[display]{\Huge\filleft\scshape}{ \normalfont\bf\fontfamily{put}\fontseries{b}\fontsize{95pt}{0pt}\selectfont\thechapter}{20pt}{}[\titlerule\vspace{2ex}\filright\vspace{2ex}]          %\titleformat{\section}[block]     %{\normalfont\sffamily}     %{\thesection}{.5em}{\titlerule\\[.8ex]\bfseries}               \titlespacing*{\part}{-10pt}{120pt}{-80pt}%pbk     \titleformat{\part}[frame]{\Huge\filcenter\scshape}{ \normalfont\bf\fontsize{85pt}{0pt}\selectfont \raisebox{1.7cm}{ Part\fontfamily{put}\fontseries{b}\fontsize{105pt}{0pt}\selectfont \hspace{.2em}\thepart} }{30pt}{}[\filright]           \newcommand\boxedSection[3]{{%     %          \begin{tikzpicture}[inner sep=#3,line width=1.0pt]              \node[anchor=east,rectangle,draw] at (0,0) (counter) {\textbf{#2}};                  \draw (counter.south west)  ++(.0pt,.5pt)-- ++($(\linewidth,0) - (2.5pt,0)$);     \node [right of=counter,anchor=west]{#1};          \end{tikzpicture}      }}      \newcommand\boxedSectionB[3]{{%     %          \begin{tikzpicture}[inner sep=#3,line width=1pt]              \node[anchor=east,rectangle,draw,fill=black] at (0,0) (counter) {\color{white}\textbf{#2}};                  \draw (counter.south west) ++(.0pt,.5pt)-- ++($(\linewidth,0) - (2.5pt,0)$);     \node [right of=counter,anchor=west]{#1};          \end{tikzpicture}      }}     \newcommand\boxedsection[1]{\boxedSectionB{#1}{\thesection}{2mm}}     \newcommand\boxedsubsection[1]{\boxedSection{#1}{\thesubsection}{1.7mm}}     \newcommand\boxedsubsubsection[1]{\boxedSection{#1}{\thesubsubsection}{1.5mm}}      \titleformat{\section}[hang]%          {\usekomafont{section}}%          {}%          {.0em}%          {\filright\boxedsection}%           \titleformat{\subsection}[hang]%          {\usekomafont{subsection}}%          {}%          {.0em}%          {\filright\boxedsubsection}%      \titleformat{\subsubsection}[hang]%          {\usekomafont{subsubsection}}%          {}%          {.0em}%          {\filright\boxedsubsubsection}%                         \usepackage{rotating}     \usepackage{fancyhdr}                    % Fancy Header and Footer          % \usepackage{txfonts}                     % Public Times New Roman text & math font          %%% Fancy Header %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % Fancy Header Style Options          \pagestyle{fancy}                       % Sets fancy header and footer     \fancyfoot{}                            % Delete current footer settings          %\renewcommand{\chaptermark}[1]{         % Lower Case Chapter marker style     %  \markboth{\chaptername\ \thechapter.\ #1}}{}} %          %\renewcommand{\sectionmark}[1]{         % Lower case Section marker style     %  \markright{\thesection.\ #1}}         %          \fancyhead[LE,RO]{\bfseries\thepage}    % Page number (boldface) in left on even     % pages and right on odd pages     \renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\thechapter.\ #1}}{}}     \fancyhead[RE]{\bfseries\nouppercase{\leftmark}}      % Chapter in the right on even pages     \fancyhead[LO]{\bfseries\nouppercase{\rightmark}}     % Section in the left on odd pages          \let\headruleORIG\headrule     \renewcommand{\headrule}{\color{black} \headruleORIG}     \renewcommand{\headrulewidth}{1.0pt}     \usepackage{colortbl}     \arrayrulecolor{black}          \fancypagestyle{plain}{       \fancyhead{}       \fancyfoot{}       \renewcommand{\headrulewidth}{0pt}     }          \usepackage{algorithm}     \usepackage[noend]{algorithmic}               %%% Clear Header %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % Clear Header Style on the Last Empty Odd pages     \makeatletter          \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else%       \hbox{}%       \thispagestyle{empty}%              % Empty header styles       \newpage%       \if@twocolumn\hbox{}\newpage\fi\fi\fi}          \makeatother          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % Prints your review date and 'Draft Version' (From Josullvn, CS, CMU)     \newcommand{\reviewtimetoday}[2]{\special{!userdict begin         /bop-hook{gsave 20 710 translate 45 rotate 0.8 setgray           /Times-Roman findfont 12 scalefont setfont 0 0   moveto (#1) show           0 -12 moveto (#2) show grestore}def end}}     % You can turn on or off this option.     %\reviewtimetoday{\today}{Draft Version}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \usepackage{multirow}     \usepackage{slashbox}          \renewcommand{\epsilon}{\varepsilon}          % centered page environment          \newenvironment{vcentrepage}     {\newpage\vspace*{\fill}\thispagestyle{empty}\renewcommand{\headrulewidth}{0pt}}     {\vspace*{\fill}}               \renewcommand{\figurename}{Figure~}     %\usepackage[small,bf]{caption}          \addtokomafont{caption}{\small}     \setkomafont{captionlabel}{\small\bfseries}          \setcapindent{0em}     \usepackage{ifpdf}          \usepackage[b5paper,hyperindex=true,plainpages=false]{hyperref}               \renewcommand{\thefootnote}{\roman{footnote}}     \def\sectionautorefname{Section}     \def\subsectionautorefname{Section}     \def\subsubsectionautorefname{Section}     \usepackage{pdflscape}          \newenvironment{mysidewaystable}[1][htp]{\begin{sidewaystable}[#1]}{\end{sidewaystable}}          \renewcommand{\topfraction}{0.7}    % max fraction of floats at top     \renewcommand{\bottomfraction}{0.75}    % max fraction of floats at bottom     %   Parametres for TEXT pages (not float pages):     \setcounter{topnumber}{2}     \setcounter{bottomnumber}{1}     \setcounter{totalnumber}{3}     % 2 may work better      \setcounter{dbltopnumber}{2}    % for 2-column pages     \renewcommand{\textfraction}{0.05}  % allow minimal text w. figs     %   Parametres for FLOAT pages (not text pages):     \renewcommand{\floatpagefraction}{0.6}  % require fuller float pages     % N.B.: floatpagefraction MUST be less than topfraction !!     \usepackage[title,toc]{appendix}               % % % % % % % % %indice di capitolo     \def\ptctitle{indice di capitolo}                     % scrive quello che c'è tra {} al posto di Indice o Contents nei minitoc     \def\mtctitle{indice di capitolo}     \def\stctitle{indice di capitolo}     \setlength{\mtcindent}{3pt}               % indentazione del titolo del minitoc     \renewcommand{\mtifont}{     \small\scshape\lsstyle}             \usepackage{tocbibind}     \usepackage{mathtools}          \definecolor{NatGreen}{RGB}{50,93,61}     \newcolumntype{x}[1]{%     >{\raggedleft\hspace{0pt}}m{#1}}%               \hyphenation{mo-le-cu-lar ful-le-ro-pyr-ro-li-di-ne ful-le-ro-pyr-ro-li-di-nes his-to-grams his-to-gram pla-te-aus}          \hypersetup     {pdftitle={Spectroscopic Tools for Quantitative Studies of DNA Structure and Dynamics.},     pdfauthor={Søren Preus},     pdfsubject={PhD thesis. ``Spectroscopic Tools for Quantitative Studies of DNA Structure and Dynamics.'' }, %subject of the document     %pdftoolbar=false, % toolbar hidden     pdfmenubar=true, %menubar shown     pdfhighlight=/O, %effect of clicking on a link     colorlinks=true, %couleurs sur les liens hypertextes     pdfpagemode=UseOutlines,%UseNone, %aucun mode de page     pdfpagelayout=TwoPageRight,%SinglePage, %ouverture en simple page     pdffitwindow=true, %pages ouvertes entierement dans toute la fenetre     linkcolor=black, %couleur des liens hypertextes internes     citecolor=black, %couleur des liens pour les citations     urlcolor=black, %couleur des liens pour les url     bookmarksopenlevel=2     }               \usepackage[style=numeric,backend=bibtex,refsegment=chapter]{biblatex}                    \begin{document}      \titleformat{name=\section,numberless}[hang]{\usekomafont{section}}{}{.0em}{}          \pagenumbering{roman}     \dominitoc          \mainmatter     \chapter{try try try try try try try try try try try try try try try try try try try try try try try try try try try try try try}     \textit{try try try}     \vfill %da lo spazio     \minitoc %crea il mini indice     \newpage     %----------------------------------------------------------------------------------------     \section{try try try try try try try try  try try try try try try try try try try try try try try try try try try try try try try}     try try try try try try try try try try try try try try try try try try try try try try try try try try try try try try          \end{document}


title: Getting Not defining \perthousnad and Not defining \micro when compiling beamer with Kile

text: I have some experience using LaTeX with Miktex on windows, but am only taking baby steps in learning how to do it on Ubuntu. I am using Kile as IDE for making beamer presentations. The pdf file is nicely generated after the compilation, however, I get the following error message:               ./file.tex:0: Not defining \perthousnad      ./file.tex:0: Not defining \micro      I don't know what is going with Kile during compilation of beamer document classe! Could anyone suggest me any thing that may help!! thank you.


title: Practically, where to put \index?

text: I use vim-latex. For the sake of SyncTeX, I usually format my paragraphs into separate lines, using a customized `gqip`. I used to put `\index` after the term to be indexed, as suggested here. For example               Bla bla bla bla bla bla bla bla bla bla. A      \emph{quasipseudometaball}\index{quasipseudometaball} is defined as follows      However, this produces a long string without spaces, which is not practical when I format the paragraph in Vim with `gqip`, as shown in the example above. Putting space or line break before `\index` is not a good idea, neither, because               Let $B$ be a ball \index{ball}.      will put a space before the period. Anyway, putting `\index` within the text makes the defining paragraphs unreadable in the source code. I don't like it. I now decide to put them before the relative paragraphs, but sometimes the paragraph is long, and the location is not precise anymore. It may be a silly question, but I would like to know where do you put `\index`?


title: Set global margins (width) for pictures - different than text margins

text: I have produced my `pdf` output from `tex` file and noticed that my pictures are not "correctly" included - their left margin corresponds to the left margin of the regular text, but the right margin in beyond my control and stands out: ![enter image description here](http://i.stack.imgur.com/aRmL1.png) To address this problem, I would like to make **all icnluded pictures be centered and NOT be subjected to any text margin settings** (they may exceed text margins, but symmetrically). Moreover, in my case, **it must be done via some global options at the beginning of the document** (NOT: in the document body, e.g. within `includegraphics` section). Thank you in advance for any suggestions!


title: newpx font and large brackets

text: I am having a problem using the `newpxmath` package. Bigger curly brackets as well as square brackets do not display correctly, as shown below: ![Example](http://i.imgur.com/fDN9Uvm.png)               \documentclass{article}     \usepackage{amsmath}     \usepackage{pxfonts, newpxmath}     \begin{document}          \begin{equation}      x = \left\{ \begin{array}{llll}       1&&&\text{for } 0\leq p \leq p_{0},\\       2&&&\text{for } p_{0}\leq p \leq p_{1},\\       3&&&\text{for } p_{1} \leq p \leq 1.      \end{array}\right.     \end{equation}          \end{document}      I have just discovered this error after installing Tex Live 2013 on a new machine and trying to recompile a document which looked perfect on a very similar installation of Tex Live 2013. The steps I have taken are to check the compilation log, which contains no mention of issues with fonts, and reinstall `newpx` as well as its dependencies (`newtx`, `txfonts`). No success. Everything looks fine if I load only `pxfonts`, but I would like to use `newpxmath` because `pxfonts` on its own has some math font spacing issues. I would appreciate any help with this problem. Thank you.


title: When should I use intersentence spacing (`\@')?

text: I've got a sentence that ends on an acronym:               blah blah WORD. Next sentence blah      Running this through `chktex`, I'm informed that: > Warning 13 in ./file.tex line 9: Intersentence spacing (`\@') should perhaps > be used. I have two questions: firstly, am I correctly using the intersentence spacing when do this:               blah blah WORD.\@ Next sentence      as opposed to this:               blah blah WORD.\@Next sentence      The second seems to remove the spacing between the period and the `N` entirely; but it does get rid of the warning from `chktex`. On the other hand, I can't see any difference between `WORD.\@ Next` and `WORD. Next`. Secondly, when should I use it? I can't visually see any difference in output (hence the first question) - is checking and using this something I should be doing, or is it minor enough that not worrying about it isn't going to produce visually-noticeable effects?


title: How to use \edef to wrap an existing macro with @inmatherr?

text: I have a handful of existing macros that I want to wrap in some custom processing. Here's an example of the kind of thing I'm aiming to do:               \makeatletter     \let\olddag\textdagger     \renewcommand\textdagger{\@inmatherr\textdagger \olddag}     \makeatother      Then if were to try to use `$\textdagger$`, I'd get a error, rather than the existing behavior of typesetting nothing appropriate. However, `\textdagger` in regular text mode will fall through to its existing definition. My question is, how can I achieve the same effect but without making the assignment to the intermediate command `\olddag`? I suspect there would be some voodoo using `\edef` and/or `\expandafter` that would enable me to expand:               {\@inmatherr\textdagger \textdagger}      or perhaps:               {\noexpand\@inmatherr\noexpand\textdagger \textdagger}      at definition time, so that when I invoke `\textdagger` in the body of my document, I don't get a TeX stack overflow. But I haven't yet been able to find what it is. These other questions (and answers) may be relevant:   * A: How do I reuse a command name two or more times?   * How to use \noexpand in an \edef?   * When to use \edef, \noexpand, and \expandafter?   * What is the difference between \let and \edef?   * How to control whether and when a macro gets expanded during another definition?   * Problem with nested \noexpand and \edef But I haven't yet been able to piece together a solution from them. I guess it's no news that LaTeX's order-of-evaluation rules aren't that transparent.


title: Label a single coordinate (pgfplots)

text: I have the following plot:               \begin{tikzpicture}         \begin{axis}[grmin=-5:5 -5:5]             \addplot[mark=none] {x^2/4};             \addplot[mark=none] {-1};             \addplot[mark=*] coordinates {(0,1)};         \end{axis}     \end{tikzpicture}      Which looks like this: ![enter image description here](http://i.stack.imgur.com/6W1I8.png) My question is: how can I label the point `(0,1)` as "(0,1)", such that the label appears either to the right or left of the point?


title: \markboth is not working when using \chapter and \section

text: I am having a problem when adding `\chapter` and `\section` in the document. `\markboth` is not working when I compile it. I have got a link Why is \markboth not working?. But there is no solution about my problem. I have written the following code:               \documentclass[a4paper,12pt]{book}     \usepackage[vmargin=0.2cm,hmargin=1cm,head=16pt,includeheadfoot]{geometry}     \usepackage{fancyhdr,amsthm}     \theoremstyle{plain}     \newtheorem{theorem}{Theorem}[section]     \newtheorem{corollary}[theorem]{Corollary}     \fancyhead{}     \fancyfoot{}     \fancyhead[LE,RO]{\thepage}     \fancyhead[LO]{\slshape\rightmark}     \fancyhead[RE]{\slshape\leftmark}     \pagestyle{fancy}     \begin{document}     \markboth{Chapter}{Section}     \thispagestyle{empty}     \chapter{ Chapter}     \section{Section}          \begin{theorem}      Theorem     \end{theorem}          \newpage     Second page     \newpage          Third page     \end{document}      This produces: ![enter image description here](http://i.stack.imgur.com/ovqFX.png)   ![enter image description here](http://i.stack.imgur.com/k998k.png) ![enter image description here](http://i.stack.imgur.com/ELTZM.png) But I want to get the following output: ![enter image description here](http://i.stack.imgur.com/8iUtL.png) ![enter image description here](http://i.stack.imgur.com/mqZZx.png) ![enter image description here](http://i.stack.imgur.com/VTkxL.png) How can I solve this problem ?


title: Some ticks get lost when increasing the domain, why?

text: \documentclass[pstricks,border=12pt]{standalone}     \usepackage{pstricks-add}     \psset{plotpoints=51}     \begin{document}     \multido{\iAngle=351+1}{10}{%     \begin{pspicture}[showgrid](-4,-3)(4,3)     \pstVerb     {         /smjr 4 def % semi major         /smnr 3 def % semi minor         /ecc 1 smnr smjr div 2 exp sub sqrt def % eccentricity         /coe1 smjr smnr mul 2 div def % coefficient 1         /coe2 ecc smjr mul 2 div def % coefficient 2     }%     % draw ellipse     \psellipse(!smjr smnr)     % draw Focus     \pnode(!ecc smjr mul 0){Focus}     \qdisk(Focus){2pt}     \pscurvepoints{0}{\iAngle}{smjr t cos mul smnr t sin mul}{P}     \pspolylineticks[metricFunction,Os=0,Ds=.25]{P}     {         coe1 x smjr div acos DegtoRad mul         coe2 y mul         sub     }     {0}{5}     \psset{linecolor=red}     \multido{\i=0+1}{5}{\qdisk(PTick\i){2pt}}     \rput(0,2){\textcolor{red}{\Huge$\iAngle^\circ$}}     \end{pspicture}}     \end{document}      ![enter image description here](http://i.stack.imgur.com/Y4LlA.gif) When the domain of `\pscurvepoints` approaching `360`, some ticks disappear. Why?


title: Bold text with nested braces

text: I'm sure this is an easy question, but I'm not sure what the proper terminology is to search for the answer.               $$\textbf{k_{1,1}}$$      LaTeX gets all confused by this. How can I make `k_{1,1}` bold?


title: Changing the Greek math font with mathspec

text: I've recently changed from pdftex to xetex to be able to write documents in Bembo Std but I'm not quite there yet. While trying to typeset some notes from one of my classes, I tried to typeset Greek symbols both inside (italic) and outside (non italic) of math mode. I tried to type an alpha with the Greek keyboard layout on Mac OS X 10.8 which worked, provided the font has a glyph for it, and I tried to change the font for Greek characters in math mode with the following:               \usepackage{mathspec}      \setmainfont[Ligatures={Tex}]{Bembo Std}     \setmathsfont(Digits,Latin)[Scale=MatchLowercase]{Bembo Std}     \setmathsfont(Greek)[Scale=MatchLowercase]{STIXGeneral}      I'm using texlive 2012 with Texpad on Mac OS X 10.8. When trying the code above, xetex fails to typeset and seems to be stuck in an infinite loop. Commenting out the last line will make it typeset, but the used font for Greek letters will be Computer Modern. (Bembo Std doesn't contain any Greek glyphs (or at least my version doesn't) hence STIXGeneral.) I've tried to find the cause of this problem in the log file, but I didn't get any wiser from reading it. The log with \tracingall: https://www.dropbox.com/s/xxe5e6gifqvsd89/Metafysica.log A minimal example:               \RequirePackage[l2tabu, orthodox]{nag}           % Opmaak     \documentclass[11pt,oneside]{article}     \usepackage[a4paper]{geometry}     % \usepackage[artemisia]{textgreek}      \usepackage[final,kerning=true,spacing=true,factor=1100,stretch=10,shrink=10]{microtype}          % Wiskunde     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{amsfonts}     \usepackage[math]{mathspec}     \setmainfont[Ligatures={Tex}]{Bembo Std}     \setmathsfont(Digits,Latin)[Scale=MatchLowercase]{Bembo Std}     % \setmathsfont(Greek)[Scale=MatchLowercase]{STIXGeneral}          % Varia     \usepackage{polyglossia}     \setdefaultlanguage{dutch}     \usepackage{hyperref}          \begin{document}          \section{Les 8}     De boeken worden vaak aangeduid met Romeinse cijfers, maar ook met Griekse letters. Zo staat boek I    ook gekend als boek A, boek II als boek α $\alpha$ (kleine alpha) en alle volgende boeken krijgen de alfabetisch hier op volgende Griekse letter toegewezen.           \end{document}      How can I typeset Greek letters in mathmode in a different font? How can I typeset upright Greek letters with another font of my choice if the main font doesn't contain any glyphs for it?


title: Versioning for each compiling

text: is there a way to create different output files (pdf) with differen versions for each compiling? For example:   1. compile -> V0.1    2. compile -> V0.2 and so on... I know about the package `vrsion` but it is not what I am looking for. Dont need the versioning on the footer etc. :)


title: Bold figure number but not in reference

text: I like to have a bold figure number in my captions:               \newcommand*\oldthefigure{}     \let\oldthefigure=\thefigure     \renewcommand*\thefigure{\textbf{\oldthefigure}}      The problem is, that also when I use `\ref` in my text, the number is getting bold, which is not what I want. How can I fix this, not using any additional package (because I am forced to)?


title: Having pdflatex clean up after itself in WinEdt?

text: How do I get `pdflatex` (via WinEdt) to remove all the extra output files (e.g., `.lof`, `.blg`, etc.) after compiling my `.tex`/`.bib`/`.etc` to a `.pdf`? If there is a solution, I suspect it will come via " _Options_ " -> " _Execution Mode_ ". I'm just not finding anything though :( I was told by someone that `pdflatex` won't do this and that I would need to create a Makefile. Is that true?


title: What LaTeX / LyX classes, modules and templates are available for novel writing?

text: I'm very new to LyX and LaTeX, but keep seeing it mentioned while Googling for composing a novel. I'm understanding that it might offer the simplicity of being able to focus on writing the story, without worrying about the format, while at the same time handling the format so everything is arranged precisely, and with perfect type-setting, and ready to go. And, that with the Outline/Table-of-Contents tab, on LyX, I'll be able to see the arrangement of chapters and scenes to move them around, cut-and-pasting them as necessary. I'm thinking that if I learn LyX, I can just enter the text, then draft and re-draft it to perfection and see the whole content. Unlike some of the special novel writing software that's out there already, at the end of my project, with LyX, I should have a novel that I can print, and it should actually be ALREADY formatted like a book, ready to go (without having to send off to a professional publishing house for conversion using their secrete software ;-) And, unlike Word, Libre-Office, or Abiword, I won't have to spend the majority of my time worrying about arranging the format, fonts, layout, etc... In short, I should be able to focus on creating the story rather than creating the book, at the end everything will be in its proper spot. And so, I'm wondering if I'm understanding the potential power of LyX and LaTeX correctly, that its main use is for any document that uses a strict pre- defined format, such as creating Text Books with very complex formats and/or formula, or a novel with simple, but strict, format requirements. I keep reading about "templates", "classes" and "modules", to which I really don't understand the difference just yet. But I'm looking for one designed for novels. Should I try to learn LyX and LaTeX, and try to find a template to compose a novel, or am I trying to figure out how to operate a bulldozer to move a small bucket of dirt? :-) If not, please recommend a novel template or module?


title: grid step relative position tikz

text: I found that the step of the grid is not relative to where the grid is called, but relative to the origin. Therefore in a figure like this one the grid gets shifted with respect the multiple axis. Is there any trick to make it relative to the place it has been called or it is needed to calculate the shift `\pgfmathsetmacro{\myshiftX}{calculations}` and supply it as a parameter `\draw[step=0.25,xshift=\myshiftX]`               \documentclass[tikz]{standalone}     \usepackage{tikz}     \begin{document}          \begin{tikzpicture}[node distance=3mm, scale=1.2]     \def\lengthAxis{1.1}     \def\AxisSpace{2.4}          \foreach \elem [count=\i] in {1,2,3,4,5,6,7,8}{     \pgfmathsetmacro{\x}{\AxisSpace*mod(\i-1,4)}     \pgfmathsetmacro{\y}{-1*\AxisSpace*int((\i-1)/4)}          \draw[step=0.25,gray,very thin] (\x,\y) +(-1.05,-1.05) grid +(1.05,1.05);          \path (\x,\y)   + (          \lengthAxis,                         0)    coordinate (meanI)                             + (  -1*\lengthAxis,                          0)    coordinate (medI)                              + (                       0,        \lengthAxis )   coordinate (minI)                              + (                           0,  -1*\lengthAxis)   coordinate (maxI);          \draw[thin] (meanI) -- (medI) (minI) -- (maxI);          \draw[thin] (\x,\y) + (    1,      0)   circle [radius=1pt] node[below] {1}                                     + (   -1,      0)   circle [radius=1pt] node[above] {1}                                     + (      0,     1)  circle [radius=1pt] node[right]         {1}                                     + (        0,     -1)   circle [radius=1pt] node[left]      {1}                                     + ( 0.5,       0)   circle [radius=1pt] node[below] {0.5}                                     + ( -0.5,      0)   circle [radius=1pt] node[above] {0.5}                                     + (    0,   0.5)    circle [radius=1pt] node[right]         {0.5}                                     + (    0, -0.5) circle [radius=1pt] node[left]      {0.5};          }     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/b4SDO.png)


title: typesetting in the style of Turing's famous "ON COMPUTABLE NUMBERS"

text: Maybe an unusual question but I love the typographical style of this text. http://classes.soe.ucsc.edu/cmps210/Winter11/Papers/turing-1936.pdf I am an art student writing a research paper. I would love to be able to present it in the style of Turing's famous text. Is there a `\documentclass{}` that will approximate the style used in this paper. Thanks Rob


title: PGFPlots: How to use a parameter t when plotting in 2D

text: I would like to plot some characteristic curves of the wave equation with parameter `t` which is time.               x - \frac{\omega}{k}t = c      where `\frac{\omega}{k}` is the phase velocity and `c` is constant. In my example, I let `c = 2`; however, what do I with `t`?               \documentclass[tikz, convert = false]{standalone}     \usepackage{pgfplots}     \pgfplotsset{compat = 1.8}          \begin{document}     \begin{tikzpicture}     \begin{axis}       [       restrict x to domain = 0:5,       restrict y to domain = 0:5,       samples = 1000,       ]       \foreach \v in {1, 2, ..., 5}{         \addplot[red, domain = 0:5] {x - \v * t - 2};       }     \end{axis}     \end{tikzpicture}     \end{document}


title: What is / are the softwares to use to draw surfaces of the form of a two or three-holed torus , or torus, or torus with cusps attached to it?

text: > **Possible Duplicate:**   >  Topological Quantum Field Theory diagrams with pstricks or tikz I am trying to draw surfaces with complete hyperbolic structures and surfaces which are topologically tori. The hyperbolic surfaces I need to draw are torus with one or two holes on it, or torus with punctures on it, or torus with a cusp attached to it . They could also be torus torus with one or more than one handles attached to it. For example, see the diagrams on : http://www.maths.bris.ac.uk/~mazag/hyperbolic/index.html Or see the diagrams on : http://lamington.wordpress.com/2010/04/18/hyperbolic- geometry-notes-4-fenchel-nielsen-coordinates/ to get ideas about what surfaces I am talking about. They are not given by any easy equations. Is there a software I can use to draw them ? People who study Riemann Surfaces or Hyperbolic Geometry or Teichmmuller Theory would definitely know exactly what surfaces I am talking about.Please let me know if you use such a software. Thanks a lot in advance !!


title: \href macro in \section conflicts with local hyperref linking in ToC

text: If I have a section like so               \section{Section 1}      then in the ToC, so long as I use the `hyperref` package, it is linked to that particular section. However, if I use an href tag as the section name,like so               \section{\href{http://www.google.com}{Section 1}}      In the ToC it goes directly to google.com (not what I want) instead of Section 1 (what I want). Is there any way to have it such that when I click on the Section title, it goes to the link, but when I click on the section in the ToC it goes to the Section (and not the link)? **Minimal example**               \documentclass{article}          \usepackage{hyperref}     \usepackage{xspace}          \hypersetup{colorlinks=true,         linkcolor=[rgb]{0.192157,0.309804,0.309804},        urlcolor=cyan,         citecolor=blue}          \newcommand{\latex}{\LaTeX\xspace}          \begin{document}        \title{Minimal \latex\ Example}        \date{}        \vspace{65 mm}        \author{Julius Caesar}             \maketitle             \clearpage             \tableofcontents             \clearpage             \section{Section 1}        \label{sec:one}        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum             \section{\href{http://www.google.com}{Section 2}}        \label{sec:two}        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum               \end{document}


title: Insert a figure on the corner of the page

text: I am using the following title page:               \documentclass[12pt]{article}     \usepackage{amsmath}     \usepackage[hidelinks]{hyperref}     \usepackage[usenames,dvipsnames]{color}     \usepackage{tikz}     \usepackage{epigraph}     \usepackage{lipsum}     \usepackage{fancyhdr}     \usepackage{soul}     \usepackage[toc,page]{appendix}     \usepackage{glossaries}     \usepackage[squaren,Gray]{SIunits}     \usepackage[export]{adjustbox}     \usepackage{caption}          \definecolor{titlepagecolor}{cmyk}{0.9,0.1,0.8,0.1}          \DeclareFixedFont{\titlefont}{T1}{ppl}{}{it}{0.5in}          \makeatletter                            \def\printauthor{%                           {\large \@author}}                   \makeatother     \author{%        \textcolor[RGB]{35, 127, 82}{\textbf{Pafuncio PAFUNCINHO}} \\      \textit{  Bla bla bla bla bla}  \vspace{5pt} \\     \textcolor[RGB]{35, 127, 82}{\textbf{Zilcleio ZILCLEINHO}}\\    \textit{BLa bla bla bla}         \texttt{}\vspace{5pt} \\         \textcolor[RGB]{35, 127, 82}{\textbf{Coiso COISINHO}}\\       \textit{ Bla bla bla bla bla bla bla}         \texttt{}         }                       \newcommand\titlepagedecoration{%             \begin{tikzpicture}[remember picture,overlay,shorten >= -10pt]                  \coordinate (aux1) at ([yshift=-15pt]current page.north east);             \coordinate (aux2) at ([yshift=-410pt]current page.north east);             \coordinate (aux3) at ([xshift=-4.5cm]current page.north east);             \coordinate (aux4) at ([yshift=-150pt]current page.north east);                  \begin{scope}[titlepagecolor!40,line width=12pt,rounded corners=12pt]             \draw               (aux1) -- coordinate (a)               ++(225:5) --               ++(-45:5.1) coordinate (b);             \draw[shorten <= -10pt]               (aux3) --               (a) --               (aux1);             \draw[opacity=0.6,titlepagecolor,shorten <= -10pt]               (b) --               ++(225:2.2) --               ++(-45:2.2);             \end{scope}             \draw[titlepagecolor,line width=8pt,rounded corners=8pt,shorten <= -10pt]               (aux4) --               ++(225:0.8) --               ++(-45:0.8);             \begin{scope}[titlepagecolor!70,line width=6pt,rounded corners=8pt]             \draw[shorten <= -10pt]               (aux2) --               ++(225:3) coordinate[pos=0.45] (c) --               ++(-45:3.1);             \draw               (aux2) --               (c) --               ++(135:2.5) --               ++(45:2.5) --               ++(-45:2.5) coordinate[pos=0.3] (d);                \draw                (d) -- +(45:1);             \end{scope}             \end{tikzpicture}%             }          \begin{document}               \begin{titlepage}                              \noindent         \titlefont Blablablablabla  \\ Blabl Blabla         \epigraph{Bla bla bla bla bla bla bla bla bla\\ \vspace{2mm}  \textcolor[RGB]{35, 120, 82}{\textit{Bla bla bla bla bla bla bla bla bla bla.}}}%         {\textsc{XXXX XXXXX XXXXX XXXXXX}\\ \textit{September 15, 2014, Neuch\^atel, Switzerland.}}         \null\vfill         \vspace*{1cm}         \noindent         \hfill         \begin{minipage}{0.70\linewidth}             \begin{flushright}                 \printauthor             \end{flushright}         \end{minipage}         %         \begin{minipage}{0.02\linewidth}             \rule{1pt}{125pt}         \end{minipage}               \titlepagedecoration         \end{titlepage}     \end{document}      As I did not create this template, I don't really know how to use it. I would like to add a logo on the left corner, at the bottom. How could I do this, please?


title: pgfplots y=x graph not rendering all points

text: \begin{tikzpicture}[baseline={([yshift=-1em] current bounding box.north)}]                 \begin{axis}                 [                     x = 0.75cm,                     y = 0.75cm,                     xlabel = $x$,                     ylabel = $y$,                     xmin = -10,                     xmax = 10,                     restrict x to domain = -10:10,                     ymin = -10,                     ymax = 10,                     restrict y to domain = -10:10,                     axis x line = middle,                     axis y line = middle,                 ]                     \addplot {x};                     \legend{$y = x$};                 \end{axis}             \end{tikzpicture}      ![fail](http://i.imgur.com/T2GGGEv.png) Why does the graph only render from (-5,-5) to (5,5)? It should be (-10,-10) to (10,10)


title: Add tooltip to postscript image using pdfmark ann

text: How can I add a mouse over 'tooltip' to a postscript image using pdfmark annotation please? I'm compiling a large PDF from several hundred postscript images and have a Perl script to automatically add hyperlinks to each postscript image to aid navigation (these are then referenced in a LaTeX document using \includegraphics). I'm using the pdfmark code like the following for the hyperlink, but what would the tooltip code associated with this link look like please:               [ /Rect [ 1294 1037 1799 2837 ]     /Dest /pi_target_child     /Border [0 0 2]     /Color [.7 0 0]     /Subtype /Link     /ANN pdfmark      I've had a look through the pdfmark documentation but unable to work out if this is possible. I've tried adding /Title (my tooltip text) to the above but without success. ==Edit== I've discovered the widget subtype and can add a tooltip to the image, but unfortunately this has broken the hyperlink. The mouse cursor changes (correctly) to a hand, from arrow, when hovering over the hyperlink section but left clicking does not navigate away... Almost there!?               [ /Subtype /Widget     /Rect [ 1294 1037 1799 2837 ]     /F 4     /TU (My tooltip)     /T (tooltip \thetooltip)     /FT /Btn     /DA (/Helv 0 Tf 0 0 1 rg)     /Ff 65536     /ANN pdfmark


title: Why is there extra space after (:) in \texttt{}

text: Whenever I type a space after a colon (:) in a `\texttt{}` command I end up with extra space — here is a minimal example:               \documentclass[12pt]{article}          \thispagestyle{empty}          \begin{document}     \section*{Test Space after Colon}            \texttt{1234 : 8901}\\     \texttt{12345678901}          \vspace{\baselineskip}          \noindent      The above was produced by      \begin{verbatim}     \texttt{1234 : 8901}\\     \texttt{12345678901}       \end{verbatim}     and has extra space after      the colon (:)           \vspace{\baselineskip}          \noindent      \textsf{1234 : 8901}\\     \textsf{12345678901}          \noindent      The above was produced by      \begin{verbatim}     \textsf{1234 : 8901}\\     \textsf{12345678901}       \end{verbatim}     and has no extra space after      the colon (:)           \end{document}      The above code produces ![Test space after colon](http://i.stack.imgur.com/SxKej.jpg) As you can see in the example, the extra space does not appear in the `\textsf{}` command for example. Any idea what is going on here?


title: draw dots on the line tikz

text: Im trying to draw a graph in tikz.               \documentclass{article}     \usepackage{tikz, subfigure}     \usepackage[papersize={100mm, 100mm}, text={100mm, 100mm}]{geometry}     \tikzstyle{every node}=[draw,shape=circle]               \newcommand{\order}[2][th]{\ensuremath{{#2}^{\mathrm{#1}}}}          \begin{document}     \pagestyle{empty}     \begin {figure}[1]       \centering            \subfigure[picture 1]{         \begin{tikzpicture}     \tikzstyle{every node}=[draw,shape=circle]          \draw[xshift=-1cm] (0,0) coordinate[label=above:$a$](a) -- (1,0) coordinate [label=below:$u_1$](b);     \draw[xshift=-1cm] (2,0) coordinate[label=below:$v_1$](c) -- (3,0) coordinate [label=below:$u_2$](d);     \draw[xshift=-1cm] (4,0) coordinate[label=below:$v_2$](e) -- (5,0) coordinate [label=above:x](f);     \draw[xshift=-1cm] (5,0) coordinate[label=above:x] -- (6,0) coordinate [label=above:b](B);               \draw (b) to[out=110,in=70] ++(2,0);     \draw (c) to[out=110,in=70] ++(2,0);                  \end{tikzpicture}       }       \end{figure}     \end{document}       But cant find how to draw a dots on a, v1, v2 etc. Can you help me?


title: Problems with danish symbols in chapter

text: I tried to use this code but have problems with the danish symbol "å":               \documentclass[       11pt,       pagesize=auto,       version=last,       chapterprefix=true       ]{scrbook}     \usepackage[danish]{babel}     \usepackage[babel=true]{csquotes}     \usepackage[T1]{fontenc}     \usepackage[explicit]{titlesec}     \usepackage{xcolor}     \usepackage{charter}          \definecolor{mybluei}{HTML}{999999}     \definecolor{myblueii}{HTML}{999999}          \newcommand\ChapterFont{\usefont{T1}{qhv}{b}{n}\selectfont\huge}     \newcommand\SectionFont{\usefont{T1}{qhv}{b}{n}\selectfont}          \titleformat{\chapter}[display]       {\normalfont\ChapterFont\huge\color{myblueii}}       {}       {0pt}       {\parbox[b]{70pt}{\mbox{}}%         \parbox[b]{50pt}{\colorbox{mybluei}{%           \parbox[b][60pt][t]{45pt}{\centering%             \color{white}%             {\itshape\rmfamily\small\chaptertitlename}%             \vfill{\fontsize{50}{120}\selectfont\thechapter}%             }%           }%         }\hspace{15pt}%         \parbox[b]{\dimexpr\textwidth-150pt}{%           \raggedright\scshape#1\vskip6pt%         }%       }          \titleformat{name=\chapter,numberless}[display]       {\normalfont\ChapterFont\huge\color{myblueii}}       {}       {0pt}       {\parbox[b]{70pt}{\mbox{}}%         \hspace{15pt}%         \parbox[b]{\dimexpr\textwidth-150pt}{%           \raggedright\scshape#1\vskip6pt%         }%       }          \titleformat{\section}       {\normalfont\small\sffamily\SectionFont\color{myblueii}}       {\colorbox{mybluei}{%         \parbox[c][16pt][c]{40pt}{%           \centering\textcolor{white}{\SectionFont\Large\rmfamily\thesection}%           }%         }%       }       {1em}       {#1}       [\vspace{-1.2\baselineskip}%         \color{myblueii}\hspace*{\dimexpr40pt+2\fboxsep\relax}%         \rule{\dimexpr\textwidth-40pt-2\fboxsep\relax}{1pt}%       ]          \begin{document}          \chapter{Her står kapitlet}          \section{Test sektion}          \end{document}


title: Usage of macros inside \mintinline

text: I tried to use a macro inside `\mintinline`. This is the result:               \documentclass{article}          \newcommand\ab{expanded stuff}          \usepackage{minted}          \begin{document}          \expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\mintinline{\ab}          \end{document}      The macro `\mintinline` is introduced in version v2 alpha 2.0 (currently alpha 3, Github link, and also Highlighted source code inline with Latex/Minted? ) _Surely_ there's a "better" way to do this? :-) Some solution that would also allow syntax highlighting to function as intended... (This will be a tough one because \mintinline takes up an argument, like this: `\mintinline{Python}{code goes here}`)\ I am using **minted v2.0 alpha 3**. Can be downloaded at https://github.com/gpoore/minted/tree/master/source


title: How can I convert units in LaTeX environment?

text: Example:               \usepackage{siunitx}          \newcommand{\temperature}[1]{\SI{#1}{\celsius}}     \temperature{100}      output: 100°C I would like something like:               \newcommand{\temperature}[1]{\SI{#1+273}{\kelvin} (\SI{#1}{\celsius})}     \temperature{100}      output: 373K (100°C) Is it possible?


title: Drawing tombstone diagrams

text: Whats a good way to draw tombstone diagrams (wiki)? ![enter image description here](http://i.stack.imgur.com/i9ovh.png) I've found this but it requires specifying the coordinates when they need to be stacked together: http://blog.sterex.de/2013/04/latex-macro-for-tombstone- diagrams/ Is there something more convenient?


title: Why does the non-breaking space produce a double space with babel and \og and how to use both \og and non-breaking space?

text: I am wondering if this is a normal situation or a bug!               \documentclass{article}     \usepackage[french]{babel}     \begin{document}          Ceci est \og entre guillemets \fg.          Ceci est aussi \og~entre guillemets~\fg, mais avec des espaces insécables.          \end{document}      which gives ![enter image description here](http://i.stack.imgur.com/XMZAk.png) **Is there a way to use both a non-breaking space and the symbol \og?** * * * PS :               Ceci est aussi \og{}~entre guillemets~\fg{}, mais avec des espaces insécables.      gives the same.


title: How to extract author names

text: I am writing a project report with one of my friend. The problem is, somewhere (e.g., `titlepage`) I need to write all our details, but somewhere I need only names. Here's what I was trying to do:               \documentclass{article}     \makeindex     \title{}     \author{Author 1 (Registration Number: XXXX, Email: XXXX) \\ \& Author 2 (Registration Number: YYYY, Email: YYYY)}     \begin{document}          % Title page contains the name and other details     \maketitle \clearpage     \section{Introduction}          \section*{Declaration}     % But, here I need only names and registration numbers separately     We, {\it the~authors individually} declare something.     \\     \\     \begin{minipage}[t]{0.5\linewidth}     Signature of Author 1 (Name only)\\ \\ \rule[0em]{15em}{0.5pt} \\ (Registration of Author 1) \\ \\ Date \\ \rule[0em]{15em}{0.5pt}          \end{minipage}%     \hfill     \begin{minipage}[t]{0.5\linewidth}     Signature of Author 2 (Name only)\\ \\ \rule[0em]{15em}{0.5pt} \\ (Registration of Author 2) \\ \\ Date \\ \rule[0em]{15em}{0.5pt}     \end{minipage}     \end{document}      Is there any automated way to achieve this? Additionally, I have another question: How can I put dotted lines in signature and dates?


title: Add frommobilephone to scrlttr2

text: I would like in my document to have `fromphone` and `frommobilephone`, but \KOMAoptions doesnt support `frommobilephone`... as i searched in the Internet for solution, i found a lco file from Dr. Michael Ebner, which i find very nice still, but neither he solved this. Could someone help tell me how could i change the lco file that it would also frommobilephone support? Regards               Vorlagen/ebner.lco      % $Id$     % Author: Dr. Michael Ebner, Michael@DrEbner.net     % Date: May 2005     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %     %  Letter Class Option of Michael Ebner     %          % briefkopf fuer Dr auch machen (geht das vererbend)??          \ProvidesFile{ebner.lco}[%            2002/07/24 LaTeX2e unsupported letter-class-option]          \RequirePackage{marvosym}       % Fuer Telefon-, Handy- und Briefsymbol     \RequirePackage{relsize}% fuer groesseren fromname          \LoadLetterOption{DINmtext}     \@setplength{toaddrvpos}{39mm}     \@addtoplength{toaddrhpos}{10mm}% BCOR correction          \KOMAoptions{fromalign=right,fromrule=aftername,fromphone,%              fromemail,enlargefirstpage,foldmarks}     %,headsepline,footsepline          \setkomavar{emailseparator}{~}     \setkomavar{phoneseparator}{~}          \addtokomafont{fromname}{\bfseries\larger}     \setkomavar{fromname}{Michael~Ebner}     \setkomavar{signature}{Michael~Ebner}     \setkomavar{fromaddress}{Strasse~1\\37000~G\"ottingen}     \setkomavar{backaddress}{Michael~Ebner,~Strasse~1,~37000~G\"ottingen}     \setkomavar{place}{G\"ottingen}          \setkomavar{fromphone}[\Telefon~]{(05\,51)~1\,23\,45\,67}     \newkomavar{frommobilephone}     \setkomavar{frommobilephone}{(01\,79)~1\,23\,45\,67}          \setkomavar{fromemail}[\Email~]{mail@post.de}     \setkomavar{fromurl}{www.MichaelEbner.net}          \firstfoot{\parbox[b]{\textwidth}{%       \centering\usekomafont{footnote}       \@ifundefined{footrulewidth}{%       \let\footrulewidth\textwidth}{}       \null\rule{\footrulewidth}{.4pt}\\\relax       \def\\{\ \textperiodcentered\ \ignorespaces}       \usekomavar*{frombank}: \usekomavar{frombank}     }}          \endinput      My latex document:               \documentclass[ ebner,%                     paper=a4,%                     fontsize=10pt,%                     ngerman,%                     pdftex,%                     BCOR=10mm%                   ]{scrlttr2}%           \KOMAoptions{ fromalign=right,%                   paper=a4,%                   fromrule=aftername,%                   foldmarks=false,%                   parskip=full,%                   addrfield=true,%                   backaddress=false,%                   numericaldate=false,%                   enlargefirstpage,%                   foldmarks=false,%               fromphone=true,%                   fromemail=true}            \usepackage[latin1]{inputenc}       \usepackage[ngerman]{babel}       \usepackage[T1]{fontenc}      % T1-encoded fonts: auch Wörter mit Umlauten  trennen       \usepackage{url}       \usepackage{ae} % Schöne Schriften für PDF-Dateien       \usepackage{microtype} % Mikrotypographische Anpassungen für pdflatex       \usepackage{fixltx2e} % korrigiert LaTeX-Fehler            \firstfoot{} % no bank information            \setkomavar{date}{\today}        \setkomavar{subject}{Betref}       \setkomavar*{enclseparator}{Anlagen}       \usepackage[babel,german=guillemets]{csquotes}       \usepackage{a4wide}            \begin{document}       \pagestyle{empty}       \begin{letter}%        {Musterfirma \\ Musterbereich \\ Herr Hans Mustermann \\ Musterstrasse \\ 55555 Musterhausen}            \opening{Sehr geehrte Damen und Herren,}                 \closing{Mit freundlichen Grüßen}            \enlargethispage{6\baselineskip}\medskip       \noindent Anlagen           \end{letter}      \end{document}


title: Change Margins in ClassicThesis

text: I am writing my thesis and using the excellent `classicthesis` package. My university has strict margin guidelines for submission (left = 1.5in, right = 1in, top = 1in, bottom = 1in). I played around a little using the `areaset` command to modify the `textwidth` and was able to get the right margins after some iterations. But i was wondering if anyone could help me with an elegant way to do it so that I can replicate it in the future for other specifications.


title: How to draw this diagram with minimum effort?

text: I want to save my time by avoiding manual calculation if possible. Could you help me to simplify the following code snippet?               \documentclass{minimal}     \usepackage{pst-node}     \psset{unit=6.2cm,linewidth=1.6pt}     \pagestyle{empty}     \begin{document}     \begin{pspicture}[showgrid=false](-0.1,-0.1)(2,2.1)     \SpecialCoor     \pstVerb{/side 1 def}     \pnode(!0 side){A}\uput[180](A){$A$}     \pnode(!0 0){B}\uput[225](B){$B$}     \pnode(!80 sin 2 exp side mul 40 sin div 70 sin div 0){C}\uput[-45](C){$C$}     \pnode(!80 sin side mul 30 sin div 20 cos mul 80 sin side mul 30 sin div 20 sin mul){D}\uput[0](D){$D$}     \pnode(!50 sin side mul 20 sin div 60 cos mul 50 sin side mul 20 sin div 60 sin mul){E}\uput[90](E){$E$}     \pnode(!80 sin side mul 70 sin div 60 cos mul 80 sin side mul 70 sin div 60 sin mul){P}\uput[110](P){$P$}     \pnode(!80 sin 2 exp side mul 60 sin div 70 sin div 20 cos mul 80 sin 2 exp side mul 60 sin div 70 sin div 20 sin mul){Q}\uput[80](Q){$Q$}     \pspolygon(A)(B)(C)(D)(E)     \psset{linecolor=red}     \psline(A)(D)     \psline(B)(E)     \psset{linecolor=blue}     \psline(P)(C)     \psline(B)(D)     \psset{linecolor=magenta,linewidth=0.8pt,arcsep=1.6pt,arrows=<->}     \psarc[origin={A}](A){30pt}{(D)}{(E)}\uput{15pt}[15](A){$\theta$}          \psarc[origin={B}](B){45pt}{(E)}{(A)}\uput{25pt}[75](B){$30^\circ$}     \psarc[origin={B}](B){45pt}{(C)}{(D)}\uput{25pt}[10](B){$20^\circ$}     \psarc[origin={B}](B){45pt}{(D)}{(E)}\uput{25pt}[40](B){$\alpha$}          \psarc[origin={D}](D){40pt}{(A)}{(B)}\uput{15pt}[187.5](D){$30^\circ$}     \psarc[origin={D}](D){40pt}{(B)}{(C)}\uput{15pt}[235](D){$50^\circ$}     \psarc[origin={D}](D){40pt}{(E)}{(A)}\uput{15pt}[140](D){$50^\circ$}               \psarc[origin={C}](C){35pt}{(D)}{(P)}\uput{15pt}[100](C){$70^\circ$}     \psarc[origin={C}](C){35pt}{(P)}{(B)}\uput{13pt}[160](C){$40^\circ$}          \psarc[origin={P}](P){45pt}{(C)}{(D)}\uput{20pt}[-25](P){$30^\circ$}     \end{pspicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/8pnVX.png) For those who are interested in knowing the solution of this geometry problem, see A tricky geometry problem.


title: How to create a new line in the table cell

text: I am trying to create a table, but the content in the table cell is quite long, so I decided to create a new line for the cells. But I am not sure how to do that, could someone help me on that? Here is my code:               \begin{table}[h!]     \caption{Multirow table}     \begin{center}     \begin{tabular}{ |c|c|c| }      \hline     Observation(Species name)  & Likelihood (Limnodynastes peronii Distribution Model)  &Likelihood (Rhinella marina Distribution Model)\\       \hline          Observation 1 (Limnodynastes peronii) &0.0712 &0.2699\\        \hline         Observation 2 (Rhinella marina) &0.30 &0.013 \\       \hline     \end{tabular}     \end{center}     \end{table}