title: pgfplot change label from axis

text: I have created this plot with tikz               \documentclass{article}     \usepackage{tikz}     \usepackage{pgfplots}          \begin{document}      \begin{tikzpicture}[scale=0.9]          \begin{axis}[         xlabel=$\alpha$,         ylabel=$\beta$]         \addplot[smooth,mark=*,blue] plot coordinates {     (190.728393646,196.570620518) (160.02707719,175.430559421) (164.125220206,182.103291039) (176.15829007,177.090660212) (187.341046916,176.087180673) (193.821169011,174.354254307) (176.904045293,197.933268209) (181.069040516,169.025260202)          };          \addplot[smooth,mark=*,red] plot coordinates {         (190.728393646,196.570620518) (180.588633071,193.390056336) (183.404873834,179.52351824) (173.721786053,184.741768818) (174.727003532,170.598902591) (190.579518039,183.334835567) (193.020394587,189.098640907) (176.298883572,184.158520273)          };         \end{axis}                      \end{tikzpicture}      \end{document}      I would like to change the labeling of the axis. Instead of 190 I would rather have 190° and so on. Is there an easy way to achive that?


title: Long LaTeX files in Sublime Text 2

text: I use Sublime Text 2 for my LaTeX documents, but I tend to write very long documents. What kind of tricks or add-ons would be helpful when working with super long files? For example, since I have many `\sections` in my document, is there a way to quickly jump between them?


title: Problem with a conditional in a tabular

text: I want to use conditionals to fill a `tabular`, but it fails. My MWE:               \documentclass{article}     \usepackage{environ}          \newcounter{mycounter}          \NewEnviron{montab}{%         \setcounter{mycounter}{0}         \newcommand{\mcItem}[1]{%         \stepcounter{mycounter}%                  \ifcase \arabic{mycounter} % If counter = 0                 \relax             \or % If counter = 1            ##1 & %              \or % If counter = 2                 ##1 \\%             \or  % If counter = 3                 ##1 &             \or  % If counter = 4                 ##1             \fi                 }     \begin{tabular}{cc}             \BODY     \end{tabular}     }          \begin{document}          \begin{montab}     \mcItem{premier}     \mcItem{deuxieme}     \mcItem{troisieme}     \mcItem{quatrieme}     \end{montab}          \end{document}      I hoped with this code to obtain the output :               premier    deuxieme     troisieme  quatrieme      I think the problem comes from the fact for example that a part of the conditional (the `\ifcase`) is before a `&` and the rest is after it. Since any cell of a `tabular` forms a group, the different elements of the conditional lie in different groups.   1. Did I understand the problem correctly?   2. How to do it better? :)


title: how to change color of citations brackets

text: I want to change the color of Citations brackets from black to blue , I have used               \usepackage{hyperref}     \usepackage{cite}     \renewcommand{\citeleft}{\textcolor{red}{[}}     \renewcommand{\citeright}{\textcolor{red}{]}} but all vain. my code is                     \documentclass[preprint,3p,twocolumn]{elsarticle}          \usepackage{amsmath,amsfonts,amssymb,amscd,amsthm,xspace}     \usepackage{epstopdf}     \usepackage{lineno}     \usepackage{pifont}     \usepackage{natbib}     \usepackage{graphicx}     \usepackage[nodots,nocompress]{numcompress}     \usepackage{setspace}     \usepackage{color}          \usepackage[pdfpagemode={UseOutlines},bookmarks=false,bookmarksopen=false,bookmarksopenlevel=0,                 bookmarksnumbered=true,hypertexnames=true,colorlinks=true,linkcolor={blue},citecolor={blue},         urlcolor={blue},pdfstartview={FitH},unicode,breaklinks={true},citebordercolor={0 0 1}]{hyperref}                         \biboptions{numbers,sort&compress,square,comma}                         \journal{Computer Networks}               \begin{document}          \begin{frontmatter}                    \title{Wireless Sensor Networks Routing: A Comprehensive Survey}               \author[a]{Palvinder Singh Mann\corref{cor1}}     \ead{psmaan@hotmail.com}     \author[b]{Satvir Singh}     \ead{satvir15@gmail.com}     \cortext[cor1]{Corresponding author.Tel.:+91-9888395367 fax:+91-0181-2205852}          \address[a]{Department of Information Technology, DAV Institute of Engineering and Technology, Jalandhar,Punjab,India.144008.}     \address[b]{Department of Electronics and Communication Engineering, Saheed Bhagat Singh State Technical Campus, Ferozepur, Punjab, India.152004.}          \begin{abstract}          \end{abstract}          \begin{keyword}                    \end{keyword}          \end{frontmatter}          \linenumbers          %% main text          \section{Introduction}               Wireless Sensor Networks (WSNs) contain self-configured, distributed, autonomous and resource empowered sensor nodes that monitor physical or environmental activities, such as humidity, temperature, sound, vibration or pollutants in a specific area of operation\cite{yick2008wireless}.           \subsection{Subsection One}               \section{References}               \bibliographystyle{model1-num-names}     \bibliography{Ref}               \end{document}


title: Multicolumn misplaced \omit problem

text: Okay, I know there are a few questions already about this but I looked at them and tried to get it to work but couldn't, I'm kinda new at this so I dont really have a clue what I'm doing. Anyway here's whats wrong. I want to get a single long header across my columns like this :               _______________________________                  Dataset A     _______________________________     1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |         This is the code I have               \begin{table}[h]          \begin{tabular}{|c|c|c|c|c|c|c|c|}          \multicolumn{8}{c}{Dataset A} \\      L (m) & T (s) & T$^2$ (s$^2$) & L$^{1/2}$ (m$^{1/2}$) & $\Delta$T$^2$ (s$^2$) & $\Delta$T (s) & Fitted T$^2$ (s$^2$)  & Fitted T (s) \\ \hline         0.2 & 0.626 & 0.392 & 0.447 & 0.006 & 0.005 & 0.394 & 0.662 \\          0.3 & 0.889 & 0.790 & 0.548 & 0.009 & 0.005 & 0.797 & 0.889 \\          0.4 & 1.105 & 1.221 & 0.632 & 0.011 & 0.005 & 1.201 & 1.081 \\          0.5 & 1.261 & 1.590 & 0.707 & 0.013 & 0.005 & 1.604 & 1.250 \\          0.6 & 1.420 & 2.016 & 0.775 & 0.014 & 0.005 & 2.008 & 1.403 \\          0.7 & 1.555 & 2.418 & 0.837 & 0.016 & 0.005 & 2.411 & 1.543 \\          0.8 & 1.679 & 2.819 & 0.894 & 0.017 & 0.005 & 2.814 & 1.674 \\          0.9 & 1.798 & 3.233 & 0.949 & 0.018 & 0.005 & 3.218 & 1.797 \\          1.0 & 1.901 & 3.614 & 1.000 & 0.019 & 0.005 & 3.621 & 1.913 \\          1.1 & 2.000 & 4.000 & 1.049 & 0.020 & 0.005 & 4.025 & 2.023 \\     \end{tabular}     \end{table}      I cant figure out why this wont work, So if anyone could help me I'd really appreciate it. It works fine if I remove the multicolumn line and just typeset it without the heading. Anyway any help would be massively appreciated. Thanks,


title: TeXnicCenter Crashes on BUILD and VIEW OUTPUT

text: This is in reference to previous question that I have posted and dint get it resolved. **PROBLEM** : BUILD CURRENT FILE on TXC works Fine. BUILD AND VIEW OUTPUT or VIEW OUTPUT makes TXC to open sumatra and crash ( compiles for ever ). Have to force stop sumatra from task manager. its not local to any file. It happens to every file. Example :               \documentclass[11pt]{article}          \author{abhi}            \title{Simple Document}          \begin{document}            HELLO WORLD ! THIS IS AN EXAMPLE !           \end{document}      Below is the image of the LaTex and BibTeX result in TXC. ![enter image description here](http://i.stack.imgur.com/Q2Qmt.png) But this compiles and gives output just fine in TeXworks that comes with MiKTEX. If someone would try to help me resolve this issue I sure would appreciate it.


title: What are the benefits and drawbacks of Lyx compared to TeXnicCenter

text: I'm relatively new to LaTeX and have been using TeXnicCenter. I've heard one or two people rave about Lyx and am debating if I should switch to it. What are specific benefits and drawbacks to using Lyx instead of TeXnicCenter? Are there any issues or annoyances you run into when using Lyx that you don't with TeXnicCenter? Can using Lyx hinder your ability to learn LaTeX well?


title: Are there resources for acquiring elements of commercial fonts specific to TeX?

text: Some TeX packages benefit from the acquisition of specific fonts for best results. For example, `mathdesign` lacks small caps for Bitstream Charter, but supports an "expert" option that makes use of Windows Postscript version of these, that requires ownership of the relevant font. These formats are, however, generally available as parts of expensive comprehensive bundles. Are there resources for TeX users that provide a way to purchase the specific font features "missing" from popular TeX packages, without having to purchase expensive bundles?


title: looking for monospaced condensed font

text: I am looking for condensed mono spaced (typewriter) fonts to typeset program listings with pdflatex. The fonts should have the common shapes (up and italic or slanted) and series (normal and bold). Any suggestions?


title: What is the proper way to represent a talk at a conference (with no proceedings) in BibTeX (hopefully via Zotero)?

text: I use zotero to manage my bibliography, and export collections to BibTeX when I'm writing in LaTeX. I use `apacite` as my style (I'm a psychology student). I have a citation that should end up looking like this: > Ranney, M., Cheng, F., Garcia de Osuna, J., & Nelson, J. (2001, November). > Numerically Driven Inferencing: A New Paradigm for Examining Judgments, > Decisions, and Policies Involving Base Rates. Paper presented at the annual > meeting of the Society for Judgment and Decision Making, Orlando, FL. It is a "paper" which is really a talk at a conference with no proceedings. The closest I can get is with a Zotero "Presentation" with the following in the type field. Ends up as a "misc" in the BibTeX file: using               @misc     ...     type = {Paper presented at the annual meeting of the Society for Judgment & Decision Making}     ...      Yields the following in my LaTeX / BibTeX output (unwanted square braces): > Ranney, M., Cheng, F., Osuna, J. G. de, & Nelson, J. (2001). Numerically > driven inferenc- ing: A new paradigm for examining judgments, decisions, and > policies involving base rates [Paper presented at the annual meeting of the > Society for Judgment & Decision Making]. Orlando, FL. Or, I can get close by hand-adding a `booktitle` field to the misc entry. Note that Zotero outputs the "right thing" (to a word doc, or plain text, etc.) using a presentation, `type = Paper, conference = the annual meeting of the Society for Judgment & Decision Making`. Anyway, I can just hand-code this as a lecture, but that sucks a little for my current work-flow. Any ideas / hacks for how to deal with the problem much appreciated!


title: unexplainable behaviour

text: There is no problem to be solved here, I just experienced a very strange behaviour on the part of latex - have you ever experienced something similar? After having made a clean new installation of Ubuntu 12.04 (I moved from Mint 10), I set to work upon a tex file that I had used on the old OS. Then, somehow, without any change in the file, `\textcite{X}` produced not, as it used to, `X (year)` but `X (title)`. I then started to make a minimal example, but could not reproduce the new output, but got what I wanted `X (year)`, even after including the whole preamble. Then, I run again pdflatex, biblatex (2x), pdflatex (2x) on the original document, and I got what I wanted. The strange thing is that I got two different outputs from the original file, without changing a letter in the file nor in the installation. So, after all, there is no problem, just an hour or so wasted. Has anyone made similar experiences? Or has someone an explanation for this? (Other than me being silly)


title: Defining custom labels

text: Is it possible to define a directive which creates a custom label which I can later reference on multiple locations with `\ref{...}`? For example:               ...     \createlabel{l-foo}{22}     ...     % later in document:     In line \ref{l-foo} foo-bar. Furthermore, line \ref{l-foo}...     ...      Should get translated into:               In line 22 foo-bar. Furthermore, line 22...      Alternatively, is there a way to define a set of predefined values somewhere in the beginning of the document (it doesn't have to be the label mechanism) so that I can later use them in the text. Thanks.


title: Properly squish a pgfplot bar chart

text: I am trying to make a bar chart with the following lengthy data:               Character   X-Position  Probability     space   1   0.18211     e   2   0.10083     t   3   0.07298     h   4   0.06721     a   5   0.05862     o   6   0.05435     n   7   0.04792     i   8   0.0421     s   9   0.04067     d   10  0.03916     r   11  0.03827     l   12  0.02508     f   13  0.01982     m   14  0.01964     u   15  0.01781     w   16  0.01676     p   17  0.0163     comma   18  0.01394     c   19  0.01391     y   20  0.01309     1   21  0.01165     g   22  0.0111     b   23  0.01075     v   24  0.00551     N   25  0.00544     :   26  0.00537     I   27  0.00493     .   28  0.00491     k   29  0.00488     2   30  0.00423     A   31  0.00395     ;   32  0.00357     L   33  0.00304     3   34  0.00246     G   35  0.00166     4   36  0.00163     5   37  0.00143     7   38  0.00138     8   39  0.00128     6   40  0.00122     0   41  0.0011     9   42  0.00102     J   43  0.00072     S   44  0.00059     B   45  0.00058     -   46  0.00052     j   47  0.00047     x   48  0.00046     T   49  0.0004     W   50  0.00038     ?   51  0.00037     H   52  0.00029     F   53  0.00028     O   54  0.00027     Y   55  0.00022     M   56  0.0002     R   57  0.00019     C   58  0.00018     q   59  0.00017     !   60  0.00013     E   61  0.00011     Z   62  0.00011     z   63  0.00009     '   64  0.00004     D   65  0.00004     K   66  0.00004     P   67  0.00003     (   68  0.00002     )   69  0.00002     U   70  0.00001      I put that data in a file called "my.dat", and made my Latex file in the same directory:               \documentclass[letterpaper]{article}     \usepackage{tikz}     \usepackage{pgfplots}     \begin{document}     \begin{tikzpicture}     \begin{axis}[         ybar,         xlabel=Character, ylabel=Probability         xtick=data,         xticklabels from table={my.dat}{Character}     ]     \addplot table [         x=X-Position,         y=Probability     ] {my.dat};          \end{axis}     \end{tikzpicture}     \end{document}      The result is awful: ![enter image description here](http://i.stack.imgur.com/MO1Tj.jpg) With Excel I know how to make the chart look decent. The letters come out a bit squished, so I stretch the chart: ![enter image description here](http://i.stack.imgur.com/cE8cY.jpg) But notice how it tried on its own to make the bars as thin as possible to fit it all in the chart. How do I make pgfplots try harder to make everything fit? Alternatively, it would be nice to know if there were a way to make a bar chart wrap itself, as in cut into portions and each displayed next to/on top of the other. Has anyone who can help had experience with pgfplots trying to graph lots of data?


title: Can we use media9 to show a video on a PDF but the video is not embedded to the PDF?

text: I have video tutorials that I want to show in my presentation with beamer class. I don't want the video files get embedded to the PDF because they will make the PDF size very very huge. If you know how the videos can be played on the HTML with a reference rather than embedding the video file to the HTML file, I want something like this to be applied to my PDF presentation. I just want to reference the video URL from my PDF presentation. Shortly speaking, can we use media9 to show a video on a PDF but the video is not embedded to the PDF? Uploading those videos to a web server might be difficult for me because internet connection is very slow and sometimes not available in the presentation room. :-)


title: Problem with content location with standalone package

text: I'm trying to create multiple pages with varying page heights using the `standalone` package. When I try to run my file (using XeLaTeX on a mac) the content gets shifted up and to the left so that it's no longer on the page. When I increase the margins I'm able to force a page size that will display the content but I end up with unnecessary white space at the bottom of the page (which defeats the purpose of using the standalone package). Could my issue have anything to do with the large font size I'm using or the page width constraint? If so, is there any way to resolve these issue? I'm rather new to using LaTeX so any help is greatly appreciated.               \documentclass[multi=minipage, border=0]{standalone}          \usepackage{enumitem}     \usepackage{graphicx}     \usepackage{float}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{geometry}     \usepackage{anyfontsize}     \usepackage{t1enc}     \usepackage{fontspec}     \usepackage[none]{hyphenat}     \usepackage{standalone}          \pagestyle{empty}     \geometry{papersize={500bp}}     \begin{document}     \setmainfont{Georgia}     \raggedright     \fontsize{20}{24}     \selectfont     \begin{minipage}{1\linewidth}     This is some question text.     \end{minipage}     \end{document}


title: Defining a newenvironment with optional caption

text: I am trying to define a new table environment with optional caption. However, if I don't pass it the caption, I am still getting the "Table 1.1:" below the table. What am I missing here? Thanks. Examples below. If I call it like this, it works as supposed.               \begin{mytable}[This is the caption]     % table content goes here     \end{mytable}      But if I call it like this, I get the "Table 1.1:" but nothing after. In the case with no caption provided, I obviously would like for the "Table 1.1:" not to appear.               \begin{mytable}     % table content goes here     \end{mytable}      newenvironment definition:               \def\mycaption{\relax}     \newenvironment{mytable}[1][]     {         \if\relax\detokenize{#1}\relax         \gdef\mycaption{\relax}         \else         \gdef\mycaption{#1}         \fi         \begin{table}[ht]             \centering                 \begin{tabular}{lccc}                     & \textbf{\vocalsn} & \textbf{\nonvocalsn} & \textit{Totals} \\                     \hline     }     {                     \hline                 \end{tabular}             \caption{\mycaption}             \fi         \end{table}     }


title: Can pdflatex create the pdf file while a previous version is being viewed with Adobe Reader?

text: Within Cygwin I use vim to write my .tex file, then compile with `pdflatex`. I then view the .pdf file with Adobe Reader (outside Cygwin that is, I just double-click the .pdf file from within a windows 'explorer' window). If I then edit my .tex file and recompile with pdflatex I have to first close the file in Reader, otherwise pdflatex complains that the file is being used and will note write the updated .pdf file. On my Mac at home (using the in-built PDF viewer 'Previwer') I do not need to close the .pdf I am viewing -- and furthermore the viewer will recognize that I have updated the .pdf and show me the new version. All quite nice really. I would like to have similar behaviour on my work Cygwin system. Any ideas how I could do that? Some technical details:   * using Cygwin v 1.7.15 (from `cygcheck`) or CYGWIN_NT-6.1-WOW64 (from `uname`)   * using Adobe Reader X version 10.1.6 Many thanks.


title: PDF annotations: How to know if "a box is empty"?

text: Extract from `dvipdfmx` documentation: > Warning: No annotation will be constructed if the content between `pdf:bann` > and `pdf:eann` is an empty box. My MWE (via xelatex):               \documentclass{article}          \begin{document}          \special{pdf:bann << /Subtype /Link       /BS << /Type /Border /W 0.5 /S /S >>       /A << /S /URI         /URI (http://www.tug.org) >> >>}%     http://www.tug.org%     \special{pdf:eann}          \special{pdf:bann << /Subtype /Link       /BS << /Type /Border /W 0.5 /S /S >>       /A << /S /URI         /URI (http://www.tug.org) >> >>}%     \phantom{http://www.tug.org}%     \special{pdf:eann}          \special{pdf:bann << /Subtype /Link       /BS << /Type /Border /W 0.5 /S /S >>       /A << /S /URI         /URI (http://www.tug.org) >> >>}%     \rule{1cm}{1cm}     \special{pdf:eann}          \end{document}      The second and third annotations do not work! How to make a non-empy box with invisible content? Subsidiary question: why this limitation?


title: Using "◌" in Latex - "Unicode char \u8:Γùî not set up for use with LaTeX"

text: How can I use the character `◌` (`25CC`): http://www.fileformat.info/info/unicode/char/25cc/index.htm ? I am using MikTex (pdflatex) under Window; I am importing the following packages:               \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}      When pasting the character into my document, I receive the following error message: > ! Package inputenc Error: Unicode char \u8:Γùî not set up for use with > LaTeX. I read about using `utf8x` instead of `utf8`, but this package is incompatible to `biblatex`. How can I solve this one? EDIT: Thanks for all the responses and the various ways to draw circles! I should have mentioned that I need the circle to be combined with diacritic marks (see http://en.wikipedia.org/wiki/Dotted_circle ) - the result then looks like this: # ◌̊ Thus, the XeLaTeX seems to be the way to go in my case.


title: Define a math symbol relative to font size

text: ## Idea All characters, including the new defined symbol (here an arrow), should scale related to the current font size, e.g. here 12pt. ## Implementation I would like to define an arrow similar to here. The arrow should scale with the font size. The current MWE of my definition is:               \documentclass[12pt]{article}     \usepackage{amsmath}     \usepackage{tikz}     \usetikzlibrary{calc,decorations.pathmorphing,shapes}          \newcounter{sarrow}     \newcommand\xrsquigarrow[1]{%     \mathrel{\begin{tikzpicture}[baseline={($(current bounding box.south)+(0,-0.5ex)$)}]     \node[inner sep=.5ex] (\thesarrow) {$\scriptstyle #1$};     \draw[<-,decorate,decoration={snake,amplitude=0.7pt,segment length=1.2mm,pre=lineto,pre length=4pt}] (\thesarrow.south east) -- (\thesarrow.south west);     \end{tikzpicture}}%     }          \begin{document}          $A\xrsquigarrow{f}B$          \end{document}      How does the definition have to look like in order to get dependent on the font size (from the document class)?


title: Extensible double lined, squiggle arrow

text: I would need an arrow (for math mode) with the following characteristics:   * squiggle (like `\rightsquigarrow`)   * double lined (like `\xRightarrow`)   * extendible (like `\xRightarrow`) Currently, I am using macros like this...               \newcommand{\myDoubleArrow}{\ensuremath{\smash{\xRightarrow[{\scriptscriptstyle \donotsmash{#2} \mkern+4mu}]{ \vbox{\hbox{\ensuremath{\scriptscriptstyle \donotsmash{#1} \mkern+4mu}}\vskip -1.0pt} }}}}      Do you know any neat possibility to get such an arrow? It should be usable as the command above (however, I only need text on top of the arrow) Thanks in advance!


title: How to improve listings display of JSON files?

text: I was wondering if there is a good way for JSON files to be listed with the `listings` package. The only language definition I could come up with, is this:               \lstdefinelanguage{json}     {         morestring=[b]",         morestring=[d]'     }      Now, this highlights the strings used in JSON files, but the important syntactical things in JSON are the curly braces, the square brackets, commas, and colons. I have sadly no Idea how I could make them be highlighted in a different manner. I tried adding `{` and `}` as identifier or as keywords, but it didn't work. I'd really like to make listed JSON files appear nicer, since on a project I need to document I'd really need it. Also, I couldn't find a JSON definition for that on the internet, anywhere else. On a more general thought: can I highlight all numerals with listings?


title: How to get vertical size of table captions?

text: I found that the `tabularht` package, which allows to give a fixed vertical size for a tabular, does not take into account the vertical space taken up by a table's caption. It stands to reason, the caption not actually being part of the tabular but the surrounding table. However, this effectively keeps me from specifying `\textheight` as the size of the `tabularht`. Now I would like to, as a workaround, substract the height of the caption from `\textheight`. However, I couldn't figure out how to get that particular measure (font height plus spacing above plus spacing below)?               \documentclass{scrbook} % because that is what I use          \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}          \usepackage{tabularht}     \usepackage{tabularx}          \newlength{\CaptionHeight}     \settoheight{...}          % this is where I am stuck     \newlength(\TabularhtHeight}     \setlength{\TabularhtHeight}{\textheight - \CaptionHeight}          \usepackage{showframe}     \usepackage{lipsum}          \begin{document}          \begin{table*}     \caption{Test}     \begin{tabularhtx}{\TabularhtHeight}{\linewidth}{|X|X|}     \hline     \textbf{Column A} & \textbf{Column B}\\     \hline     \lipsum[2] & \lipsum[2] \\     \interrowfill     \lipsum[2] & \lipsum[2] \\     \hline     \end{tabularhtx}     \end{table*}          \end{document}


title: Using TikZ on Linux (Lyx)?

text: I've recently upgraded to Linux, and without MikTeX I really have no idea how to manage my packages. What should I do in order to use TikZ on Lyx in Linux? Edit: oh yeah, I forgot: Linux is Ubuntu 12.10, I installed Lyx from the repository and that's it.


title: Why no GUI for Metafont?

text: Why has no-one ever created a graphical user interface for Metafont ? One can easily imagine a system that would allow interactive adjustment of the font parameters, with near-real-time display of some sort of preview (a single character, or some chosen group of characters). I would guess that Metafont's production of bitmaps would be fast enough to support this style of interaction on a decent modern computer. Most people would want a Postscript (outline) font as the final output, not a bitmap one, but this conversion could be done later -- bitmap output is fine for previews while you're fiddling with the parameter values. Is there some fundamental technical difficulty here (I don't see one), or does the programming task seem too daunting/laborious, or what ?? In short, two questions: (1) Would the development be difficult? Why? (2) Would the result be interesting/useful? Why?


title: How to get better error messages?

text: When running XeLaTeX on my document, I frequently get error messages like this:               )     Runaway argument?     ! File ended while scanning use of \next.     <inserted text>                      \par     <*> myfile.tex      This is virtually useless, as it doesn't tell me where it thinks the runaway argument is. `\par` is not helpful in locating the error. Googling around, I saw some suggestions to use `\errorcontextlines=20` or the like, but this has no effect for me. How can I get TeX to give me more context so I know where the error is actually happening?


title: How to align caption description to the left in KOMA article?

text: I would like to know how to align the caption to the left as in the `article` class, instead of aligned like shown on this picture in `scartcl` ? ![enter image description here](http://i.stack.imgur.com/VNY0Y.png)


title: Issues with unnumbered headers

text: I am trying to create a subsection header without a number and without this header showing up in the TOC. So using a '*' should do the job as follows:               `\section*{My unnumbered header}`      However, this is not working. Instead, my header is shown as "*" and my intended header shows up as a new paragraph. Any suggestions on what might be causing this problem and how I can fix it would be helpful. I am using a class file and a set of style files provided by Georgia Tech at the following link: http://www.gradadmiss.gatech.edu/thesis/templates.php


title: Changing paragraph spacing within an item using paralist

text: I am using compactenum in the paralist package. I wish to have spacing between paragraphs within an item, but no additional spacing between items. The option: \plparsep: Space between paragraphs within an item the parskip for this environment. seems like this should be it. But using this also produces space between two items. How can I get additional vertical space but only within an item? MWE               \documentclass[12pt]{report}     \usepackage{paralist}     \plparsep 0.2in          \begin{document}       \begin{compactenum}        \item foo             bar             \item foo        \item bar       \end{compactenum}     \end{document}      As written, I get the spacing within the first item like I want, but I also get additional spacing between the 2nd and 3rd items. Commenting out \plparsep 0.2in gives exactly the opposite: no spacing within the first item and no spacing between the 2nd and 3rd items.


title: Removing space around tabular columns set with siunitx

text: OK, first off, this table is horrendous looking and desperately needs help. But what I'd really like to know is how to eliminate some of the extra white space between the columns set with `S` in the `tabular` environment.               \documentclass{article}     \usepackage{amsmath,amssymb}     \usepackage{array}     \usepackage{siunitx}     \begin{document}          Areas:\par     \sisetup{table-figures-decimal=4,table-auto-round,table-number-alignment=center}     \renewcommand{\arraystretch}{1.5}%%     \begin{tabular}{l                     >{$}r<{=$}                     S[table-figures-decimal=1,table-space-text-pre=]                     >{$}r<{=$}                     S}%'        Area of region I:   & 4                    & 4    & \dfrac{1}{2}\cdot 2\cdot 4=         & 4           \\        Area of region II:  & 8                    & 8    & 1\times 8                           & 8           \\        Area of region III: & 6-3.5                & 2.5  & 2 \times 3 - \dfrac{1}{2}(1.5)^2\pi & 2.465708265 \\        Area of region IV   & 35                   & 35   & 5\times 7                           & 35          \\        Area of region V:   & 6.5                  & 6.5  & \dfrac{1}{2} (2)^2\pi               & 6.283185307 \\\hline        Total               & \multicolumn{1}{c}{} & 56.0 &                                     & 55.78990357     \end{tabular}          \end{document}      > ![enter image description here](http://i.stack.imgur.com/5JWTR.png) Incidentally, I'm using `\multicolumn` in the last row to prevent the equal sign from showing up there. Is there a better hack to eliminating, temporarily, material set for between the columns? Since this is really a second question I could post it separately if that's better.


title: Big brackets are always opening and square when using fontspec with MnSymbol

text: I have here a strange problem I don't get. When using the `fontspec` package in combination with `MnSymbol` package all big brackets in math mode are square and opening... when I deactivate one of the packages the problem is gone! Here an example of the problem:               \documentclass{minimal}     \usepackage{etex}     \usepackage[ngerman]{babel}     \usepackage{mathtools,amssymb,amsmath}     \usepackage{fontspec}     \usepackage{etoolbox}     \usepackage{MnSymbol}               % the next line makes the definition of \mathdollar from MnSymbol void.     \undef\mathdollar           \begin{document}               Big brackets are messed up while normal brackets still work:     \begin{equation*}         \begin{pmatrix}            1 & 2 & 3  \\           1 & 2 & 3  \\           1 & 2 & 3              \end{pmatrix}         = \left( \sum_{i=1}^{n-1} i \right)         = \left( n \right)         = \big( naaaarf \big)         = (all fine)      \end{equation*}               \begin{equation*}           \left[ \sum_{i=1}^{n-1} i \right]     \end{equation*}          \end{document}      And here the result: ![enter image description here](http://i.stack.imgur.com/T7k84.png)


title: font problem in miktex

text: I can not use the font MinionPro anymore, but have no idea what is wrong. The following code               \documentclass[]{scrbook}     \usepackage{MinionPro}     \begin{document}     \begin{equation}     c = a + b     \end{equation}     \end{document}       produces the error               Trying to make PK font MinionPro-Regular-Base-aa at 597 DPI...          Running miktex-makemf.exe...          miktex-makemf: The MinionPro-Regular-Base-aa source file could not be found. Running     ttf2pk.exe...          )     !pdfTeX error: pdflatex (file MinionPro-Regular-Base-aa): Font MinionPro-Regula     r-Base-aa at 597 not found      ==> Fatal error occurred, no output PDF file produced!          miktex-makepk: PK font MinionPro-Regular-Base-aa could not be created.      What is wrong here? The filedatabase was recreated and I called `initexmf --mkmaps`


title: Representing D- and L- in chemical names

text: Using LaTeX, how does one typeset the D- and L- prefixes, which refer to dextrorotatory and levorotatory isomers. I have tried `\footnotesize~D\normalsize` and it looks okay, but didn't know if there was a better or more correct approach.


title: How to handle large images?

text: I am using tikz to generate an image which is wider than the the available space for the document. The figure will be later added to another document. When I watch the figure in my document reader (evince) it is cut. I tried to use               \special{papersize=200mm,400mm}      without any apparent affect. How can view the entire image then? Thanks


title: Rotate single PDF page when viewing

text: I got a Latex document which renders fine, some content is rotated using the `turn` environment from the `rotate` package. Everything works like it should. Except: It know that it is possible to display a single page in a pdf in another orientation. The document viewer then rotates this page when viewing. This would help the readers of my document to read the turned text. How is this possible? Perhaps somehow using the `pdfpageattr` command? Again: I do not to want to rotate the content, I just want to tell the PDF- Reader that it should rotate the page when displaying.


title: Define a new caption in a listing environment

text: I want to have different listings with different types of captions, consider that I've got the following:               \documentclass{article}     \usepackage{listings}     \usepackage{color}     \usepackage{caption}          \definecolor{listinggray}{gray}{0.98}     \definecolor{lbcolor}{rgb}{0.98,0.98,0.98}          \lstset{         basicstyle=\footnotesize\ttfamily,         numberstyle=\tiny,         numberbychapter=true,             numbersep=5pt,                 float=tp,              tabsize=2,              xleftmargin=5pt,         framexleftmargin=5pt,         extendedchars=true,                  breaklines=true,         frame=tb,            showspaces=false,                showtabs=false,                 backgroundcolor=\color{lbcolor},         rulecolor=\color[rgb]{0.78,0.78,0.78},         framerule=0.5pt,         showstringspaces=false,         keywordstyle=\color[rgb]{1.0,0,0}       }     \usepackage{caption}     \DeclareCaptionFont{white}{\color{white}}     \DeclareCaptionFormat{listing}{\colorbox[cmyk]{0.43, 0.35, 0.35,0.01}{\parbox{\dimexpr\textwidth-2\fboxsep\relax}{#1#2#3}}}     \captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white, singlelinecheck=false, margin=0pt, font={bf,footnotesize}}          \lstnewenvironment{code}[1][]%         {\noindent\minipage{\linewidth}                  \lstset{#1}         }       {\endminipage}           \lstnewenvironment{tip}[1][caption=Tip]%         {         \noindent\minipage{\linewidth}                  \def\lstlistingautorefname{Tip}                 \lstset{#1,keywordstyle=\color{black},numberbychapter=false,basicstyle=\footnotesize\ttfamily\color{black}\bfseries, backgroundcolor=\color{white},frame=none,captionpos=bc }         }      {\endminipage}          \begin{document}          \begin{code}[caption=Test]     Code test..     \end{code}          ....Look, just because I don't be givin' no man a foot massage don't make it right for Marsellus....          \begin{tip}     A tip!     \end{tip}          {\begin{figure}%     This is what I want!     \caption{}%     \label{}%     \end{figure}          \end{document}      This generates the following: ![enter image description here](http://i.stack.imgur.com/9FBIY.png) Basically I want all listings to have the caption in the Top Left, but for the environment `tip` I want it to be Bottom Center as it looks at the third example but the caption should say "Tip 1". Is this possible? If So, How?


title: As a devoted LaTeX user, how do I most effectively use software which is *not* TeX-based?

text: I realize that this question is heretical here and may even be off topic but I cannot think of another place to ask. I am an enthusiastic LaTeX user. I use it for even the briefest communications, yet after much wringing of hands and gnashing of teeth I have concluded that I cannot use LaTeX to prepare manuscripts for journals in my field (aquatic ecology and biogeochemistry). Too few journals accept manuscripts written in LaTeX. I have tried conversion tools (e.g., `latex2rtf`) but the amount of post processing often negates the utility (e.g., poor BibTeX support, poor math typesetting, major errors in tables, etc...). So my question is how can I retain many of the advantages of LaTeX while composing documents that will ultimately need to be in `Word` (actually I use `Abiword`)? The functionality I would like to maintain is:   * files stored as plain text   * files that can be edited by a text editor (mainly emacs)   * some type of automatic bibliography support (preferably open source)   * math typesetting capabilities


title: How can use pgfplots to fill below for a semilogy axis?

text: I am plotting my y axis on a log scale, and many of the y values are less then one. Using the following code:               \documentclass[12pt]{article}          \usepackage{tikz}      \usepackage{pgfplots} % drawing plots right here in this file!     \pgfplotsset{compat=1.9} % latest stable release          \begin{document}          \pagestyle{empty}          \begin{tikzpicture}       \begin{loglogaxis}         \addplot+[mark=none,domain=0.1:10] {x} ;         \addplot[domain=0.3:7,fill=black]  {x} \closedcycle;         \end{loglogaxis}     \end{tikzpicture}          \end{document}      ![sample plot](http://i.stack.imgur.com/oJqcg.png) Clearly the cycle is starting at "log(y) = 0", so some values are filled above the function and some below. How can I get it to plot below the function for all values of y, and get the fill to go to the minimum value on the y axis?


title: What is the best way to produce TikZ picture for discrete signals?

text: I would like to draw discrete signals, as shown in the illustration below, but not by way of drawings of individual lines.`gnuplot` could be used for this work? It would be nice to be able to choose the sampling period, or something similar. ![Discrete signals](http://i.stack.imgur.com/ln9Rs.png)


title: Exam class: labels "point", "points" and "score" in spanish

text: I'm using the exam class with `\usepackage[spanish]{babel}` and when I type `\gradetable[v]` the labels appears in english. The question name can be changed using `\vqword{newlabelname}` but I don't know how to change the others. On the other hand, `\question[3]` write "3 points" and `\question[1]` "1 point". I want to change to the spanish words "3 puntos" and "1 punto". Minimum Working Example:               \documentclass[11pt]{exam}     \usepackage[latin1]{inputenc}     \usepackage[spanish]{babel}          \begin{document}          \vqword{Problema}     \addpoints     \gradetable[v]          \begin{questions}     \addpoints     \question[5] Una pregunta.          \addpoints     \question[12] Otra pregunta, un poco más difícil.          \addpoints     \question[3] Una pregunta más sencilla          \end{questions}     \end{document}


title: Cross-ref an equation using RefTeX, AUCTeX and cleveref

text: After an updated of AUCTeX (to 11.87) the solution that worked wonderful from this answer stopped working. In particular, I got the following error:               reftex-reference: Wrong number of arguments: (lambda (label def-fmt) (format "\\cref{%s}" label)), 3      As a side remark, for this solution to be usable I had to add `(setq reftex- ref-macro-prompt nil)`, otherwise an annoying intermediate menu poped-up. I guess it has to do with the update as well, but it is not related to the problem I'm considering in this question. In turn, I found this answer (of @giordano) which solved the issue (once I disabled the previous hack). However, there is one problem left - when I try to refer to an **equation** , namely, `M-x reftex-reference RET e up/down RET`, the system inserts `\eqref{label}` and not `\cref{label}`. Is there a way to fix this? Any idea?


title: Animating tabular rows in Beamer without showing the table border

text: I have a tabular environment with three rows, and I would like to show only the first row on my first slide, then show the next row and finally the third row. I have a solution that almost works but it shows borders around rows 2 and 3 when they are not visible, which I don't like. Is there a way to get rid of these empty borders? Here is my code:               \documentclass{beamer}          \mode<presentation>     {       \usetheme{default}       \useinnertheme{rounded}       \usecolortheme{default}     }          \begin{document}          \begin{frame}{Test Frame}          {\footnotesize     \begin{tabular}{|p{4.0cm}|p{2.9cm}|p{2.950cm}|}         \hline         \textbf{Constraint Explanation} & \textbf{Assumptions} & \textbf{Notation} \\ \hline         Each gate covered by only one module & Suppose gate $g$ is covered by modules $i$, $j$ and $k$ & $Var(g,i) + Var(g,j) + Var(g,k) \leq 1$ \\ \hline         \onslide<2-> {Selecting a slice in the module implies selecting the common parts of the module & Module $i$ has $n$ slices & forall $1 \leq k \leq n: x_{i_0} - x_{i_k} \geq 0$} \\ \hline         \onslide<3->{Each sliceable module must select either at least $M$ slices or no slices at all & Module $i$ has $n$ slices & \big( $\sum_{k=1}^n x_{i_k} \big) ~-~ M\cdot x_{i_{0}} \geq 0$} \\ \hline     \end{tabular}     }     \end{frame}          \end{document}      The image I get is the following. ![Screenshot showing results of compilation](http://i.stack.imgur.com/7phCC.png) What I would like exactly the same as the above but without the borders around the second and third rows.


title: Command: Emacs selection → \command{regexp'ed-selection}

text: Suppose I have the following text: > …as shown in figure (24). Now, suppose I select "(24)." Then, I want a command to convert it to: > …as shown in figure \command{eq:24}. Viz., how would I define a new Emacs command that I could place in `~/.emacs` that would run `C-C RET command RET` on a regexp'ed version of the selected text? thanks thanks


title: \vec{x} but with arrow from right to left?

text: I have two variables: `\vec{x}` and another one which is somehow dual to the first. Therefore I would like to symbolize the second with something similar but a leftarrow on top of the x. I already tried `\stackrel{leftarrwo}{x}` but it looks to different (too big gap between x and the arrow, and too big arrow). Is there a way to define a `\cev` command which does what I want?


title: Expansion of command for language in otherlanguage environment

text: I wish to keep the language in a command               \newcommand{\testlang}{english}     \begin{otherlanguage}{\testlang}      ...     \end{otherlangauge}      However, `\testlang` is not expanded, and i get the error               ! Package babel Error: You haven't defined the language testlang yet.      I've seen many tricks related to macro expansions, but I don't understand them well enough to know how to apply them in this scenario.


title: authblk affiliations on same line

text: When using authblk and an author/affilliation list like this:               \author[1]{Auth1}     \author[1]{Auth2}     \author[1]{Auth3}     \author[1]{Auth4}     \author[2]{Auth5}     \author[1]{Auth6}     \author[2]{Auth7}          \affil[1]{Affil1}     \affil[2]{Affil2}      The affilliations each show up on their own line:               1 Affil1     2 Affil2      How can I get them on the same line?               1 Affil1   2 Affil2


title: generate a PDF containing R output inside latex table

text: I wrote a script that generates 4 variables from 2 for loops, each one of them contain a big number of data. I want to place these variables inside a data frame and then create a latex table so I can output it as a PDF.               t <- read.table("data.txt", stringsAsFactors=FALSE)     uni <- unique(c(t$V9))          testresult <- function(column, datacol) {           if(column=="PP") {         for (xp in uni) {            for(yp in uni) {             testx <- subset(t, V9==xp)             testy <- subset(t, V9==yp)             zz <- wilcox.test(testx[[datacol]],jitter(testy[[datacol]]))             p.value <- zz$p.value           }         }       }      }      I want the table to contain these 4 columns (xp, yp, p-value, significance) for each xp and yp in the 2 for loops. The question about whether the jitter in my function is appropriate has been taken to stats.stackexchange.com: is it wrong to jitter before performing wilcox test


title: Creating wysiwyg preview for a custom math functions on lyx

text: Let's say I want to create a "macro" called `\limx` that will be defined as:               \newcommand{\limx}{\displaystyle{\lim_{x\to\x_{0}}}}      How can I make LyX recognize it and make an auto-prieview of it? Another example, I'm using the cancel package. When I'm using `\cancel` in a math equation it doesn't preview it while editing. I can still see "`\cancel`" on the equation editor. Only when I render the document the `\cancel` is being really rendered. How can I add that functionality to the LyX's WYSIWYG environment as well?


title: Numbered paragraphs

text: I would like to write something with numbered paragraphs - for those who know it the style should be the same of EGA. So instead of having something like > blah blah > > Theorem 2.1 > > blah blah > > Proof > > blah blah > > more content after the proof I would like to have something like > 2.1 blah blah > > 2.2 Theorem. blah blah > > 2.3 Proof. blah blah > > 2.4 more content after the proof Is there a simple way to get this result?


title: minitoc of a subsection

text: I'm trying to use the `minitoc` package to generate a ToC for a subsection. From my reading of the `minitoc` documentation, this doesn't look too possible to do with `minitoc`, so I am open to suggestions using `minitoc` or any other package that can accomplish this goal:               \documentclass{article}     \usepackage[layout=letterpaper,margin=1in]{geometry}          \usepackage{fancyhdr}          \usepackage{minitoc}     \setcounter{secttocdepth}{5}          \begin{document}          \dosecttoc     \faketableofcontents          \fancyfoot[L]{Revision 0.2.3 -- Dec 18, 2012}     \pagestyle{fancyplain}          \section{Small Section}     \section{Huge Section}          \subsection{Large Subsection 1}          This should be the TOC for just this {\bf subsection}:     \secttoc          \subsubsection{Thing 1}     \subsubsection{Thing 2}     \subsubsection{Thing 3}          \subsection{Large Subsection 2}          This should be the TOC for just this {\bf subsection}:     \secttoc          \subsubsection{Thing A}     \subsubsection{Thing B}     \subsubsection{Thing C}          \end{document}      ![enter image description here](http://i.stack.imgur.com/dd384.png)


title: How to list uncited .bib entries?

text: I would like to list all items in my `.bib` database which are _not_ cited by a particular document, to make sure I have not overlooked citing anything that I intended to cite. Is there an easy way to do this?


title: \fbox inside listings

text: I am trying to highlight a specific line inside a listing with listinline. The code I am currently using looks like this:               \begin{lstlisting}[escapechar=!]     class A {       void m() {         B b = ...         !\fbox{b.n();}!       }     }        \end{lstlisting}      This works somewhat, however the text inside the `fbox` is obviously not processed by the listings package. Using `!fbox{\lstinline{b.n();}}!` produces an error.


title: Highlighting/Bolding Tcircle elements

text: So I am using `PSTricks` `PSTree` package to build a tree using TCircle ... now I want to bold out some branches by making the lines of the circle and the connecting lines thicker ... can I do this somehow?


title: Theorem environment numbered according to subsection

text: I was wondering if there was a way to modify the `theorem` environment so that it interacted with sections/subsections as follows:               \section{}     \subsection{}     \begin{ex} Whatever     \end{ex}          \begin{ex}Whatever     \end{ex}                    \subsection{}          \begin{ex} Whatever          \end{ex}      Would output something like               1     1.1          Exercise 1.1.1               Exercise 1.1.2                    1.2          Exercise 1.2.1      Where `\begin{ex}` is just an environment for an "exercise".


title: Execute non-expandable code inside a tabular environment

text: As there is no Expandable version of \InputIfFileExists or \IfFileExists, the question arises whether it is possible to execute non-expandable code in a `tabular` environment after all: File `main.tex`:               \documentclass{standalone}     \usepackage{booktabs}          % How to implement this? %     \newcommand\InsideTabularInputIfFileExists[1]{...}     % How to implement this? %          % Do not change anything here %     \begin{document}       \begin{tabular}{ll}       \InsideTabularInputIfFileExists{inp.tex}       \end{tabular}     \end{document}     % Do not change anything here %      File `inp.tex`:               \toprule     a & b \\     c & d \\     \bottomrule


title: What features are supported in a HTML page, but not through PDFLaTeX

text: As a math educator with limited knowledge of TeX and even more limited knowledge of HTML, I want to know if I can use a PDF page (generated through PDFLaTeX) as a web page. I am hoping not to have to learn one more language, namely HTML!, and not lose the attractiveness of TeX output. Of course I can, but what features will I lose? I would like to have a list of HTML-based web page features that can be duplicated, packages that perform the task, and links showing what the feature actually is, in layman's terms. Here are a few things I have learned.   1. There are ample tools for hyper-referencing as in `hyperref`, `url`, and `href` packages: wikibooks.   2. You can embed media using `movie15` and `media9` packages.   3. You can have a drop down menu using `popupmenu` package.   4. You can have mouse-over tool tips: `fancytooltips`. On the negative side (not advisable/not possible/problematic cases)   1. Including Java app: thread 1, thread 2.   2. Resizing a page (Adobe Reflow).   3. Dynamic page (as in a page dropping down). Edit 1: I am looking for advice on successful examples of online textbooks which combine the traditional look of a book with a high level of interactivity. Imagine a Harry Potter style newspaper with embedded mathematically interactive elements (as in Matlab/Maple/Mathematica windows or an interactive web page). Among non-commercial software that offer a notebook is Sage.


title: Hyperlinks Vertical Alignment Inside tabulary

text: When trying to create a table using `tabulary` as:                \documentclass{article}          \usepackage{booktabs}     \usepackage{tabulary}     \usepackage{hyperref}          \begin{document}            \begin{tabulary}{6in}{rCJ}         \toprule         \textbf{Thing} & \textbf{Another} & \textbf{Thing} \\         \midrule         DEF & \hyperlink{def:ABC_DEF}{\texttt{ABC\_DEF}} & Some letters going on over here. \\         GHIJKL & \hyperlink{def:ABC_GHI}{\texttt{ABC\_GHI}} \hyperlink{def:ABC_JKL}{\texttt{ABC\_JKL}} & This box has enough text inside of it to do some word wrapping I should hope, as that's what happens in my table. \\         \bottomrule       \end{tabulary}          \end{document}      the table entries that are hyperlinks show up as being aligned with the bottom of the cell such that they're offset from the other text in the same row (i.e. `DEF` is above `ABC_DEF` in the table). When I remove the `hyperlink`s, however, the text in the rows are all aligned. Is there any way I can use hyperlinks in a 'C' column of `tabulary` and maintain vertical alignment?


title: Table formatting

text: I use the following table:               \documentclass[a4paper,                  12pt,                                            bibliography=totoc,                  index=totoc,                 abstracton,                  headsepline,                 ]{scrreprt}          \usepackage{booktabs}                \begin{document}               \begin{table}[H]\hspace*{-1cm}     \centering     \begin{tabular}{lcclll}     \toprule          Company& \multicolumn{2}{c}{exceedances (empirical)}&exeedances (expected)&no. of obs.\\     \cmidrule(r){2-3}\\     &standard normal&standardized Student's-t&&\\     \midrule     Company1&1&5&9&13\\          Company2&2&6&10&14\\          Company3&3&11&15\\          Company4&4&8&12&16\\          \bottomrule     \multicolumn{4}{l}{\begin{footnotesize}an additional hint about a detail\end{footnotesize}}     \end{tabular}     \caption{Here is the caption.}     \label{labelhere}     \end{table}           \end{document}        Which gives ![tableexample](http://i.stack.imgur.com/XulkE.png) I have two problems:   1. The space after the `\cmidrule(r){2-3}` is too big, how can I change this?   2. The table looks not that good, how can I improve it in general?


title: Winedt 6 and Adobe Reader 11, open in the last viewed page

text: I want to compile a _tex_ file with _winedt 6_ and see the PDF with adobe reader XI, but not from the first page. I mean, I want to see changes in the current page similar to Yap DVI viewer.


title: Graphics: Moving Images and aligning with text

text: So currently I have this code written out:               \begin{figure}[ht!]     \includegraphics[width=60mm, scale=0.3]{titanium-distillation-vessel.jpg}     \caption{Argon Vessel, containing TiCl$_{4}$ and Mg}     \label{overflow}     \end{figure}      And the picture sits just on the left of the page, but I don't know any command to let it sit next to a paragraph, like on the left of the page will be writing and on the right I wanted an image, but so far the image just separates the paragraph in two. So is there a way to move the image so that it is side-by-side with a plot of text? Thanks in advance.


title: Polar pgfplots diagram adds additional whitespace with units library loaded

text: When doing polar plots in pgfplots (v1.10) I get additional whitespace when loading the units library. How can I get rid of that? I did not observe this before since it is related to the direction of the y axis, as can be seen from the code below when comparing with a plot without the `xmin` and `xmax` setting. Removing the `units` library gives the correct spacing.               \documentclass[convert,TikZ]{standalone}          \usepackage{pgfplots}          \usepgfplotslibrary{%       units,       polar,     }     \pgfplotsset{       compat=newest,     }               \begin{document}     \fboxsep=0pt     \fbox{%     \begin{tikzpicture}       \begin{polaraxis}[         xmin=-180,xmax=180,         ]         \addplot coordinates {(0,1) (90,1) (180,1) (270,1) (360,1)};       \end{polaraxis}     \end{tikzpicture}%     }          \end{document}      ![Picture showing the problem](http://i.stack.imgur.com/cbAXC.png)


title: How add a node on top of a rectangle path?

text: How can I add a node on top of a rectangle path ?               \path[draw] (upperleft) rectangle (lowerright) node[???] {Top};      I am aware of the `midway` parameter that I can use, but this locates my Top label on the middle of the rectangle and not at top


title: Producing arXiv-submittable documents with figures using plain TeX

text: I am proficient with TeX but have never used LaTeX and would prefer not to learn it - though perhaps that preference is the sole source of my difficulties. I am trying to figure out how to produce TeX source that will (a) allow me to include figures in my papers and (b) be acceptable to the arXiv. I can do (a) or (b), but not both at once. To include figures in my papers, I use the `\includegraphics` command from LaTeX. To make this possible, I input the file `miniltx.tex`, a subset of LaTeX written by David Carlisle. I then input the file `graphicx.tex` (by David Carlisle and Daniel Luecking), which slightly extends `miniltx.tex`. Now `\includegraphics` works. Sort of. Namely:   1. If I produce my figures as PDFs, and hand the PDF files to the `\includegraphics` command, and then run everything through `pdftex`, I get a PDF file which looks exactly as it should look. For most purposes, this is all I need. However, if I want to submit to the arXiv, they insist on receiving the TeX source. Here's where the trouble starts...   2. If I produce my figures as PDFs, hand the PDF files to the `\includegraphics` command, and then run everything through TeX, I get the error "Cannot determine size of graphic in schematic.pdf (no BoundingBox)."   3. If I produce my figures in any other format (BMP, JPG, etc), hand them to the `\includegraphics` command, and then run everything through TeX, I get the error message "Unknown graphics extension".   4. If I produce my figures as anything other than BMPs, give up on `miniltx` and just use the TeX `\special` command (I am using MikTeX), TeX appears to run properly, but my previewer chokes on the DVI file, complaining of an "Unknown graphics inclusion type".   5. If I produce my figures as BMPs, give up on `miniltx` and just use the TeX `\special` command, TeX appears to run properly, and the previewer doesn't complain, but the figures are badly distorted and entirely the wrong size.   6. Since I have no TeX source that can produce a readable DVI file, I want to simply apply pdftex and submit the resulting PDF to the arxiv. The arXiv rejects the paper because it was produced from TeX, which means that I am required to submit the TeX source.   7. I try to bypass this problem by printing the PDF and scanning it, to produce a new pdf that bears no trace of having come from TeX. The arXiv rejects scanned PDFs.   8. I try to bypass this problem by converting from PDF to Postscript and then back to PDF again, erasing the telltale traces of TeX along the way. The arXiv insists that this is a "scanned PDF" and rejects it. So the only alternatives I can see are: A. Don't submit papers with figures to the arxiv, or B. Learn LaTeX. Is there an alternative (C)?


title: TeXstudio changed encoding

text: I wrote my text using UTF-8 encoding, however, TeXstudio somehow changed this and I cannot find the way to return my text in readable form. Is it possible at all or should I die now?


title: Can XeTeX | LuaTeX use MetaFont fonts?

text: **Can XeTeX | LuaTeX use MF fonts invented for TeX ?** By default (when `fontspec` package is not loaded) they load Latin Modern fonts as the following exception from `eu1enc.def` file shows:               \ProvidesFile{eu1enc.def}          [2010/05/27 v0.1h Experimental Unicode font encodings]     \DeclareFontEncoding{EU1}{}{}      \DeclareErrorFont{EU1}{lmr}{m}{n}{10}     \DeclareFontSubstitution{EU1}{lmr}{m}{n}     \g@addto@macro\nfss@catcodes{\@makeother:}      Latin Modern (on my computer with MiKTeX) exists in the form of Open Type (otf) and Postsript (pfb) fonts only. They contain merely Latin script. **Wouln't it be better to use, e.g., Linux Libertine fonts (which contain more scripts) as default and error font for XeTeX | LuaTeX?** With Linux Libertine LuaTeX | XeTeX would produce reasonable output for many languages (e.g. cyrillic) even without `fontspec`. This would provide better benchmark point. I mean that minimal example file would be compiled without troubles:               \documentclass{minimal}     \begin{document}     Hello world!     Здравствуй, планета!     \end{document}      At the present state of art, "Здравствуй, планета!" will be lost.


title: pdfx , trim size and margins

text: I'm using `scrbook` with forced margins and `pdfx` to produce PDF/X-1a compliant documents for the publisher. `pdfx` resizes the document and puts the trimed document in the bottom left corner. I'm not sure how the margins are kept or how the publisher will trim the printed document eventually. Can you shed some light on this subject? Here is a simple example of what I'm doing:               \documentclass[paper=6in:9in,pagesize=pdftex,                    headinclude=on,footinclude=on,11pt]{scrbook}     \areaset[0.50in]{4.5in}{8in}          \usepackage{lipsum}     \usepackage[x-1a]{pdfx}          \begin{document}          \chapter{My first chapter}          \section{A section here}          \lipsum          \chapter{My second chapter}          \end{document}


title: Tikz diagram: nodes with arrows

text: I am trying to draw this diagram using `tikz`, but I am only beginner and have some problems mainly with drawing arrows in this way. I also want nodes with round corners. Anybody can help me? ![screenshot](http://i.stack.imgur.com/7GBhC.png)


title: Inserting the \markangle on tkz-euclide 1.16c

text: How do i insert `\markangle` in tkz-euclid 1.16c?               \documentclass{article}     \usepackage{tikz}     \usepackage[active,tightpage]{preview}     \PreviewEnvironment{tikzpicture}     \setlength\PreviewBorder{5pt}     \usepackage{tkz-euclide}     \usetkzobj{all}          \begin{document}          \begin{tikzpicture}[>=latex]       \tkzInit       \tkzDefPoint(2,2){A}       \tkzDefPoint(0,0){B}       \tkzDefPoint(5,0){C}       %angulos       \tkzMarkAngle[fill=green!50,size=7mm](A,C,B)       \tkzLabelPoints[right](C)       \tkzDrawSegments(B,C C,A)       \draw ($(C)+(165:.5)$) -- ($(C)+(165:.9)$);       \draw[red,<-] ($(C)+(165:.9)$) to[out=180,in=0] +(-1,.5) node[left] {mark};     \end{tikzpicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/NTnUB.png)


title: Potential problems from passing macro arguments to \verb

text: I've been working on a command that will typeset snippets of code within a paragraph. I'm aware of `listings` and company, but I want something that will just typeset the code verbatim and also allow me to do other things with it (like save to an external file and then execute). I've created a macro that typesets its argument using `\verb` and also could make its argument available for other purposes. But in the process of creating it, I keep reading about how verb isn't meant to take arguments (even though I seem to have gotten it to do so). So two questions:   * Is there anything that can go terribly wrong with this code? Is there some deep reason that `\verb` is not to be tampered with?   * What is going on with the catcodes? It seems that `\verb`'s delimiting character must be active. This leads to some really strange behavior. For example, I can use "=" as my delimiter, and typeset code that contains "=", so long as the delimiter isn't the last character in my `\createverb` macro. Minimal working example:               \documentclass[11pt]{article}     \usepackage{xstring}          \makeatletter     \begingroup     \catcode`\==\active     \gdef\delimchar{=}     \gdef\delimchardetok{\detokenize{=}}     \endgroup     \verbtocs{\cmd}|\verb|     \def\createverb{%         \begingroup         \let\do\@makeother         \dospecials         %Reset the \, {, and } so they're special         \catcode`\\=0         \catcode`\{=1         \catcode`\}=2         %Obey spaces         \frenchspacing\@vobeyspaces         \createverb@finish}     \def\createverb@finish#1{%         %Deactiveate { and }          \catcode`\{=12         \catcode`\}=12         \tokenize{\verbtext}{\cmd\delimchardetok\detokenize{#1}}%         \endgroup         \verbtext\delimchar%     }%     \makeatother          \begin{document}          Pseudo-Perl:          \createverb{$f=$_[0]+$a{$b[2]}+$c*$d  #Comment here}          \end{document}


title: Interference of Geometry and counter of the page number

text: I'm having troubles with the geometry package, it seems that every time that I reset the pagenumber to one, the geometry package treats it like it's the first page of the document. Now this is rather inconvenient since I use the geometry package to get a bindingoffset. So each time I rest my pagenumber to 1, the bindingoffset gets set to the left (even if it isn't the first page, or any uneven page). I also checked and it's not because of the titlepage-environment that the error occurs (notice that I also reset the page numbering for my bibliography). **Warning, there is a bibliography in there, so be aware of that while compiling** (i left it in the document to show that it also does this error at the end). > **supplementary (related) question** : Is there a way to reset the internal > counter of the geometry package ? To force geometry to treat even numbered > pages as right handed ones and uneven numbered pages as left handed ones > starting from a given point in the tex-file ?               \documentclass[a4paper,11pt]{article}     \author{Some author}     \title{Some title}     \date{Some date}          \usepackage[twoside,bindingoffset=1cm,a4paper,hmargin=2cm,vmargin=2cm,includeheadfoot]{geometry}     \usepackage[english]{babel}     \usepackage{lipsum}          \begin{document}     \pagenumbering{Roman}     \begin{titlepage}     \maketitle     \begin{abstract}     \lipsum[1-3]     \end{abstract}     \tableofcontents     \addtocontents{toc}{~\hfill\textbf{Page}\par}     \thispagestyle{empty}     \end{titlepage}     \pagenumbering{arabic}     \setcounter{page}{1}          \section{The Section Manace}     \lipsum[5-10]     \section{Attack of the Sections}     \lipsum[11-17]     \section{Revenge of the Section}     \lipsum[18-24]     \section{A New Section}     \lipsum[25-30]     \section{The Section Strikes Back}     \lipsum[31-32]     \section{Return of the Section}     \lipsum[33-36]          \newpage     \setcounter{page}{1}     \pagenumbering{roman}          \bibliographystyle{unsrt}     \bibliography{LGT}          \end{document}


title: multiple citations with individual page numbers using natbib

text: I am struggling to combine multiple citations with individual page numbers. I have used this `natbib` reference sheet, but I am stuck (with what is displayed below). It seems as I cannot combine multiple citations and reference page numbers at the same time? This is what I got and what I would like (working example below), ![enter image description here](http://i.stack.imgur.com/gC9JZ.png)               \documentclass[11pt,letter]{article}          \usepackage{hyperref}          \usepackage[round]{natbib}          \usepackage{filecontents}          \begin{filecontents*}{\jobname.bib}     @book{Veblen2005:1899,         author = {Veblen, Thorstein},         Isbn = {978-81-87879-29-9},         publisher = {Aakar Books},         title = {The Theory of the Leisure Class},         subtitle = {An Economic Study of Institutions},         Year = {[1899] 2005}}          @book{Weber2013,         Author = {Weber, Max},         Isbn = {9781135973988},         Language = {en},         Month = {jul},         Publisher = {Routledge},         Title = {The Protestant Ethic and the Spirit of Capitalism},         Year = {[1905] 2013}}           \end{filecontents*}          \begin{document}          % These citations will work but in the apalike bibstyle they will not be sorted     % in citation order (the first citation is [2]).     According to \citet[p. 19]{Weber2013, Veblen2005:1899}, this paragraph---and certainly this section---should be \ldots \\          \noindent I would like it show up like this,\\          According to Weber (2013, p. 213); Veblen (2005, p. 19), this paragraph---and certainly this section---should be \ldots \\          \noindent Also, why isn't the year in brackets show in the actual text (Weber ([1905] 2013, p. 213); Veblen ([1899] 2005, p. 19))?          \bibliography{\jobname}     \bibliographystyle{cell}     \end{document}


title: Changing style of table caption

text: I'm using the `\caption` command inside `\begin{table}` command and in the output I'm getting:               Table 4.1 - Caption         Table Content      Is it possible to change that style to something like this?                                   *Table 4.1*         **Caption**        Table Content       The word "Table" and its number should be at the right side of page and in italic, the caption should be centered and bold. PS               \usepackage{caption}     \DeclareCaptionFormat{hfillstart}{\hfill#1#2#3\par}     \captionsetup[table]{format=hfillstart,labelsep=newline,justification=centering}          \usepackage{floatrow}     \floatsetup[table]{capposition=top}      I have used this code from link below. How to change it to make Table italic, and caption bold?


title: Footer with scrpage2 - footline crosses foot

text: im switching from fancyhdr to scrpage2 right now and nearly everything is working fine. There is just one Problem. The footer i have to build is pretty big and the line which should seperate it from the text crosses the footer instead of being above of it. On the otherhand the headsepline works fine no matter how big the header is. The only way i found to get the line above the footer is to set options in the geometry package, but i don't think this should be the way to do this and it is not pretty comfortable and even less good looking.               \documentclass[oneside]{scrartcl}     \usepackage[headsepline]{scrpage2}     \usepackage{lipsum}     \setlength{\headheight}{18ex}     \automark{section}     \defpagestyle{mystyle}{ %     {} %     {} %     {\parbox{5cm}{logo \\ \medskip \hspace{0.15cm} www.awwwwr.com} \hfill \parbox{5cm}      {\raggedleft  Pages \\     Autor: \\     Date: \\     Bla \\     Date: \\     Date: \\     Date: \\}}     }      {%     (\linewidth,1pt)     {}      {}     {\scriptsize      \begin{tabular}{l}     1 \\     2 \\     3 \\     4 \\     5 \\     6     \end{tabular}     \hfill      \begin{tabular}{r}     1 \\     2 \\     3 \\     4 \\     5 \\     6     \end{tabular}     }      }     \pagestyle{mystyle}     \begin{document}     \section{bla}     \lipsum     \end{document}      Can someone tell me how to fix this in a good way with the scrpage2 package or is there no option for this? Thanks Johannes


title: Natbib change author separation to '&'

text: I'm using natbib, german babel and natbib creates output of the form Foo and Bar (1337) I would like to get Foo & Bar (1337) for citet and (Foo & Bar 1337) respectively for citep.


title: Removing Chapter from the Chapter heading using a.cls file

text: Sorry if this is an easy question, however I am relatively new to LaTeX and have been trying to understand some of the code in a .cls file. I'm trying to remove the Chapter from the \chapter headings and in the .cls file there is this code:               \renewcommand{\@makechapterhead}[1]{%       \vspace*{10\p@}%       {         \begin{center}           \normalfont\heading           \ifnum \c@secnumdepth >\m@ne           \if@mainmatter\heading\@chapapp\ \thechapter:\ \fi %\thechapter:\ \fi           \fi           \heading #1\par\nobreak           \vskip 20\p@         \end{center}       }     }      I'm not entirely sure what I'm meant to be changing to remove the 'Chapter' part of Chapter 1: Introduction. Thank you in advance.


title: Biblatex: First citation as full reference and following citations ibid or - when interrupted - short citation

text: For my thesis I would like to have a citation style that meet the following requirements. a) Whenever a bibliography entry is cited the first time it will generate the full entry (author, year, title etc.). b) When it is used again without other entries in between it will be compilated as "ibid." and page number if it is different. c) When it is used again later on and other entries are in between, it should generate surname and year. **Example** : Entries like this               \autocite[48]{hG89}     \autocite[48]{hG89}     \autocite[50]{hG89}     \autocite[34]{yH11}     \autocite[46]{hG89}      should lead to footnotes like this   1. Grice, Herbert P. (1975) ≫Logic and Conversation≪. In: Syntax and semantics, S. 48.    2. Ibid.   3. Ibid., S. 50.   4. Huang, Yan (2011): Pragmatics. Oxford [u. a.]: Oxford Universitiy Press, S. 34.   5. Grice (1975), S. 46. Is there a way to generate this in Biblatex?


title: How to put \ast in bookmark?

text: I need               \section{\texorpdfstring{$V^\ast$}{V\textasciicircum\ast}}      but `\ast` yields a warning.


title: wrong page with pageref if using thmtools

text: I don't know if the following issue is related to any other question already asked. My issue and minimal looks very simple.               \documentclass{book}          \usepackage{hyperref}     \usepackage{amsthm}     \usepackage{thmtools}     \declaretheorem{theorem}          \begin{document}          \ldots \\[18cm] \ldots          % Insert another \ldots here.... dots remain on previous page, page number for theorem is corrent     % \ldots          \begin{theorem}     \label{th:1}     \ldots     \end{theorem}          Page of theorem: \pageref{th:1}.          \end{document}      As you will see, `\pageref` references to the wrong page (1 instead of 2). If including the commented `\ldots`, the reference is correct. Maybe some expert knowledge will help me understanding what's going on here. Thanks in advance!


title: When should we use a blank line?

text: I only know that we have to make at least one blank line between two adjacent paragraphs. My question is: **_What is the proper way to make use of a blank line ?_** For example:   1. Is it recommended to make a blank line between heading command call, e.g. `\chapter{}`, and the first text content as follows?              \chapter{Introduction}          In this chapter we ....      or              ... that is proven true.          \chapter{Limit}        2. Is it recommended to make a blank line between two consecutive display equations as follows?              \[ \sin x \]           \[ \cos x \]        3. Is it recommended to make a blank line between a sentence and a display equation as follows?              Assume we have          \[       \cos x     \]      or              \[       \cos x     \]          that satisfies ...        4. etc... * * * ## Edit 1:   1. How about `\bigskip`, `\vspace{}`? Does each of them needs one blank line before and one blank line after as follows:              Yes. This is a book.          \bigskip          Commander, please open the silo!      or              Yes. This is a book.          \vspace{1km}          Commander, please open the silo!


title: How to display (inline) LaTeX commands properly?

text: When writing about LaTeX, I tend to use `\verb`, which could look like that:               \documentclass{article}     \usepackage{lipsum}          \begin{document}     Lorem ipsum dolor sit amet, consectetuer adipiscing elit. \verb+\documentclass{article}+     \lipsum[2]     \end{document}      Thus I get the following result: ![Output](http://i.stack.imgur.com/hWK6A.png) Is there another way to display LaTeX commands properly in continuous text or atleast some way to prevent `\verb` from going over the end of the line? (For longer code I obviously would use something like `listings`)


title: How does one framebox a proof?

text: I am trying to frame box a proof I have written For instance               \documentclass[11pt]{article}          \begin{document}     \framebox{           \emph{Proof} \\           \text{content of proof goes here}           }                \end{document}      But the \ does absolutely nothing. All the text is squeezed together in the box


title: Automatically run a LaTeX3 function on the document environment

text: Is it possible to define a package so that it will automatically run a LaTeX3 function on the entirety of the `document` environment? If I define a function similar to the following:               \cs_new:Npn \demo #1 {         % Do something.     }      I would normally have to wrap it around the text as follows:               \demo{Some example text.}      Is it possible to instruct the `\demo` function to affect the whole `document` environment?


title: What's going on with this syntax "somename/.style={....}"

text: I'm finding the following _preference_ loading syntax popping up a lot in the newer packages: From `tikz`               \tikzset{help lines/.style=very thin}      From `tcolorbox`               \tcbset{noparskip/.style={before....}}      I assume this has something to do with LaTeX3, but I don't know where to go to read up on this and better understand the syntax. I've looked at `expl3` but didn't find anything helpful there (truthfully, my head was spinning a bit just trying to understand the new syntax there). Could someone point me in the right direction for a reference? For example, reading the documentation of `xkeyval` helped immensely in creating my own environments to which I could pass _key values_. How would I start writing my own code like               \aellettset{myexamquestion/.style={....}}


title: Producing a Table in the main file from other file containing multiple tables

text: I want to create a separate file for tables so that the main latex file doesn't get cluttered. I know I can define tables in new file and add the same file in the main file using input{Tables.tex}. However, I am not sure how can I ask for/produce (not refer) the tables using the labels of tables in the main document? Any suggestions would be appreciated. Thanks.


title: How does one include the candleshape.def mentioned in shapepar?

text: In the documentation for `shapepar` a number of def files are mentioned, for example `candleshape.def` but there is no example of how to use them.


title: Cannot align legend's text in plots using tikzpicture package

text: I'm trying to align the text (text + $math$) within the legend in my pgfplot. Despite I put the "legend cell align=left", the text still is centred. Any guess?               \documentclass[]{article}       \usepackage{tikz}       \usepackage{pgfplots}        \begin{document}         \begin{figure}[!t]           \subfloat[caption subfig 1]{              \resizebox{.45 \linewidth}{!}{%              \begin{tikzpicture}                 \begin{axis}[xlabel={labelX}, ylabel={labelY}, ymin=16, xmin=53, ymax=35.2, xmax=58, legend cell align=left, legend style={legend pos=north west,font=\tiny}]                  \addplot[mark=x,red,only marks] table[x index=6,y index=7]{./figures1.txt};                  \addlegendentry{\large{text + math $h_{1}$}}                  \addplot[mark=o,blue,only marks] table[x index=6,y index=7]{./figures2.txt};                  \addlegendentry{\large{more text + math $h_{1}$}}                \end{axis}              \end{tikzpicture}           }        }     \qquad     \subfloat[caption subfig 2]{        \resizebox{.45 \linewidth}{!}{%          \begin{tikzpicture}            \begin{axis}[xlabel={labelX}, ylabel={labelY}, ymin=16, xmin=53, ymax=35.2, xmax=58, legend cell align=left, legend style={legend pos=north west,font=\tiny}]            \addplot[mark=x,red,only marks] table[x index=6,y index=7]{./figures3.txt};            \addlegendentry{\large{text + math $h_{1}$}}            \addplot[mark=o,blue,only marks] table[x index=6,y index=7]{./figures4.txt};            \addlegendentry{\large{more text + math $h_{1}$}}          \end{axis}        \end{tikzpicture}       }     }     \caption{caption fig}     \end{figure}     \end{document}      Thanks!


title: Switching decimal mark between comma and dot

text: You might know that in large part of continental Europe, decimal mark is comma instead of dot. I am writing a really **huge** document and I would like to switch between them easily from one point, e.g.               \newif\comma     \commatrue          \ifcomma{     ???     }          \pi = 3???14      I am aware that all decimal mark dots should be replaced by something else, but what? I am opening contest for a _most elegant_ solution for the problem.


title: pgfplotstable: Conditional post-processing of cell content on a per-column basis

text: I am trying to add an asterisk to the content of certain cells depending on the cell's content (essentially, adding a marker for significant p-values) but I am having trouble trying to do so on a per-column rather than per-table basis. I adapted an answer to a similar question that colours cells based on their numerical value but that seems to only work when applied to the whole table. If I try to apply the style to a single column (uncommenting the two lines in the example below), I get a `Missing number, treated as zero.` error that seems to expect a number after the closing square bracket instead of the file name.               \pgfplotstabletypeset [assume math mode=false,     %  columns/a/.style={ % Uncommenting causes #1 to be empty         postproc cell content/.style={           /pgfplots/table/@cell content/.add={}{%             \pgfmathparse{int(less(#1,\bordervalue))}             \ifnum\pgfmathresult=1                $^*$             \else                $^\dagger$             \fi           },         },     %  },     ]{mwe.dat}      ![Applying postproc cell content/.style to the whole table](http://i.stack.imgur.com/nzeGb.png) This seems to be because, once I wrap the `postproc cell content` style in a `column` style, it no longer has access to the contents of that cell. `#1`, `@unprocessed cell content`, `@cell content after rowcol styles`, and `@preprocessed cell content` all equate to nothing, while `@cell content` always equates to the content of the very last cell of the whole table.               % #1 is empty when wrapped in a column style     \pgfplotstabletypeset [assume math mode=false,       columns/a/.style={         postproc cell content/.style={           /pgfplots/table/@cell content/.add={}{#1},         },       },     ]{mwe.dat}      ![#1 is empty in postproc cell content when wrapped in a column style](http://i.stack.imgur.com/82Iuu.png)               % @cell content contains the last cell of the whole table     \pgfplotstabletypeset [assume math mode=false,       columns/a/.style={         postproc cell content/.style={           /pgfplots/table/@cell content/.add={}{\pgfkeysvalueof{/pgfplots/table/@cell content}},         },       },     ]{mwe.dat}      ![@cell content contains the last cell of the whole table](http://i.stack.imgur.com/A5J9y.png) Results are similar when using `.code` instead of `.style`:               % Using .code, @cell content still only contains the very last cell of the table     \pgfplotstabletypeset [assume math mode=false,       columns/a/.style={         postproc cell content/.code={%           \pgfkeyssetvalue{/pgfplots/table/@cell content}{\pgfkeysvalueof{/pgfplots/table/@cell content}}%         },       },     ]{mwe.dat}      ![Using .code instead of .style, @cell content still only contains the very last cell of the table.](http://i.stack.imgur.com/pPX1h.png) Full MWE:               \documentclass{article}     \usepackage{filecontents}     \usepackage{pgfplotstable}     \usepackage{booktabs}     \pgfplotsset{compat=1.7}          \begin{filecontents}{mwe.dat}     a         b         c         d         e     1.7333    1.6472    1.5418    1.4682    1.5740       1.1525    1.2878    1.2652    1.3511    1.5102       1.2181    1.1500    1.2220    1.2425    1.5699       0.9786    1.1051    1.1472    1.3096    1.6757       0.9569    0.9190    1.0433    1.2924    1.4867       \end{filecontents}          \pgfplotstableset{       every head row/.style={before row=\toprule,after row=\midrule},       every last row/.style={after row=\bottomrule},     }          \begin{document}          \def\bordervalue{1.4}     \pgfplotstabletypeset [assume math mode=false,     %  columns/a/.style={         postproc cell content/.style={           /pgfplots/table/@cell content/.add={}{%             \pgfmathparse{int(less(#1,\bordervalue))}             \ifnum\pgfmathresult=1                $^*$             \else                $^\dagger$             \fi           },         },     %  },     ]{mwe.dat}          \bigskip           \pgfplotstabletypeset [assume math mode=false,       columns/a/.style={         postproc cell content/.style={           /pgfplots/table/@cell content/.add={}{\pgfkeysvalueof{/pgfplots/table/@cell content}},         },       },     ]{mwe.dat}          \bigskip           \pgfplotstabletypeset [assume math mode=false,       columns/a/.style={         postproc cell content/.append code={%           \ifnum\pgfplotstablerow=0             \pgfkeyssetvalue{/pgfplots/table/@cell content}{\pgfkeysvalueof{/pgfplots/table/@cell content}}%           \fi         },       },     ]{mwe.dat}          \end{document}


title: Draw additional parallel paths in TikZ

text: How can parallel lines elegantly be added to an existing path? I am looking for a solution or hint to, how a general style can be made, that works with any path. **Example path:**               \documentclass{article}     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}       \draw (0,0) -- (1,1) -| (2,2) -- (3,2) -- (3,1);     \end{tikzpicture}     \end{document}      ![original path](http://i.stack.imgur.com/Mw78V.png) **Same path, with customizable extra lines:** ![path with extra parallel lines](http://i.stack.imgur.com/sOVAN.png) Here I have drawn two extra lines, just to show, what I mean. Ideally a solution should only add one extra line, but somehow be expandable to any number of lines. The question: How to build parallel paths between nodes?, where my solution is less than elegant, has inspired me to ask this question.


title: Single format, free (e.g. LPPL licenced), journal article documentclass with existing corresponding MS Word templates

text: We are planning a new open access scientific journal. I need to write Author's Guide, and hence prepare journal template - format. I want to have MS Word and Latex templates. Even though I wrote numerous documents with Latex, it seems it will be really hard to prepare a document class as told in this site on other QAs. For the time being, I am OK with using an existing document class with a free license. I want the format to be single column, like standard article class. Do you know such a document class? \- article suits, but I could not find a corresponding Word template. \- amsart suits, but I could not find a corresponding Word template. \- ieeetran has both Word and Latex, but it has two columns. I can easily convert it to single column, but it does not look good when I do so, as it was prepared for double column viewing. And I am not a guy with good art eye. Additionally I do not know the license for their Word template.


title: How to convert a XeLaTeX template to LuaLaTeX?

text: My article used a template which can only be accepted by XeLaTeX. Now I want to convert it to LuaLaTeX. How to do this? Especially for this template. **SLEN template**               \usepackage{ctex}     \usepackage{amsmath,amssymb,amsfonts,amsthm,fancyhdr}                         \usepackage[numbers,sort&compress]{natbib}                                    \usepackage{url}                                                               \usepackage{ifthen}                                                                \usepackage{times}                                                             \usepackage{ifpdf}                                                                       \usepackage[total={130mm,203mm}, top=28.3mm, headheight=20pt, headsep=4truemm,bindingoffset=1.5cm]{geometry}     \renewcommand{\baselinestretch}{1.04}                                         \parindent 21pt          \makeatletter     \def\@maketitle{%      \newpage       \null       \vskip 0em%      \begin{center}%      \let \footnote \thanks        {\LARGE \@title \par}%        \vskip 1.5em%        {\large          \lineskip .5em%          \begin{tabular}[t]{c}%            \@author          \end{tabular}\par}%        \vskip 1em%        {\large \@date}%      \end{center}%      \par      \vskip 1.5em}     \makeatother               \usepackage{sectsty}     \sectionfont{\large}     \subsectionfont{\normalsize}                         \newtheoremstyle{mythm}{2ex}{2ex}{}{}{\bfseries}{}{1em}{}     \theoremstyle{mythm}          \newtheorem{definition}{{\bf{Definition}}}     \newtheorem*{definition*}{{\bf{Definition}}}               \makeatletter     \renewenvironment{proof}[1][Proof]{\par         \pushQED{\hfill$\square$}%         \normalfont \topsep6\p@\@plus6\p@ \labelsep1em\relax         \trivlist         \item[\hskip\labelsep\bfseries #1]\ignorespaces     }{%         \popQED\endtrivlist\@endpefalse     } \makeatother               \newcommand{\mypiia}{%                                                             \ifthenelse{\myfirstpage < 10}{000\myfirstpage}{%                                 \ifthenelse{\myfirstpage < 100}{00\myfirstpage}{%                                  \ifthenelse{\myfirstpage < 1000}{0\myfirstpage}{%                              \myfirstpage}%                                                             }%         }%     }          \newcommand{\mypiib}{%                                                             \ifthenelse{\mypages < 10}{0\mypages}{\mypages}                            }          \newcommand{\mypii}{PII: 1674-3202(\mypubyear)-0%                         %         \myissnumber-\mypiia-\mypiib}          \newcommand{\myauthors}{%         \ifthenelse{\equal{\mysecondauthor}{null}         \and \equal{\mythirdauthor}{null}}{\myfirstauthor}{%             \ifthenelse{\equal{\mythirdauthor}{null}}             {\myfirstauthor, \mysecondauthor}{%             \myfirstauthor, \mysecondauthor, \mythirdauthor             }         }     }          \newcommand{\myoneauthors}{\author{\myfirstauthor\\                              \myfirstaffiliation \\ \myfirstemail}}          \newcommand{\mytwoauthors}{\author{\myfirstauthor\\                                \myfirstaffiliation \\ \myfirstemail         \and \mysecondauthor \\ \mysecondaffiliation \\         \small \mysecondemail}%     }%          \newcommand{\mythreeauthors}{\author{\myfirstauthor\\                              \myfirstaffiliation \\ \myfirstemail         \and \mysecondauthor \\ \mysecondaffiliation \\         \mysecondemail         \and \mythirdauthor \\ \mythirdaffiliation \\         \mythirdemail}%     }%          \newcommand{\authors}{%         \ifthenelse{\equal{\mysecondauthor}{null}}{\myoneauthors}{%                        \ifthenelse{\equal{\mythirdauthor}{null}}{\mytwoauthors}{%                        \mythreeauthors             }                                                                         }     }          \newcommand{\mylhead}{Studies in Logic, Vol.~\myvolnumber,     No.~\myissnumber~(\mypubyear):~\myfirstpage--\mylastpage \\\mypii}          \newcommand{\myfancyheadCO}{\myauthors~/ \myrunningtitle}          \newcommand{\myfancyheadCE}{Studies in Logic, Vol.~\myvolnumber,         No.~\myissnumber~(\mypubyear)}          \newcommand{\mytitlepage}{%         \setcounter{page}{\myfirstpage}                                                \fancypagestyle{plain}{\fancyhf{}           \lhead{\zihao{6}\mylhead}                                                     \rhead{}                                                                       \lfoot{}                                                                       \cfoot{}                                                                       \rfoot{}                                                                       \renewcommand{\headrulewidth}{0pt}         }     }               \pagestyle{fancy} \fancyhf{}     \fancyhead[CE]{\zihao{6}\myfancyheadCE}                                        \fancyhead[LE,RO]{\zihao{-5}\thepage}                                          \fancyhead[CO]{\zihao{6}\myfancyheadCO}                                        \fancyhead[LO]{} \fancyhead[RE]{} \lfoot{} \cfoot{} \rfoot{}                  \renewcommand{\headrulewidth}{0.4pt}          \title{%         \ifthenelse{\equal{\mythanks}{null}}{\mytitle}{%         \mytitle\thanks{\mythanks}}     }               \newcommand{\originaltitlepage}{%         \mytitlepage             \authors         \date{}                                                                        \maketitle                                                                     \vspace{-4ex}                                                                  \begin{center}                                                                 \begin{minipage}[c]{12cm}             \zihao{-5} \noindent\textbf{Abstract.}\quad\myabstract         \end{minipage}         \end{center}     }               \newcommand{\reviewtitlepage}{%       \mytitlepage       \author{}       \date{}       \maketitle       \vspace*{-8ex}       \zihao{5}       \noindent\reviewbooktitle       \ifthenelse{\equal{\reviewbooktitleEN}{null}}{}{\\ \reviewbooktitleEN}       \vspace*{2ex}     }               \newcommand{\reporttitlepage}{%       \mytitlepage       \author{}       \date{}       \maketitle       \vspace*{-8ex}     }                   \newcommand{\printtitlepage}{%         \ifthenelse{\equal{\myarticletype}{original}}{\originaltitlepage}{%             \ifthenelse{\equal{\myarticletype}{bookreview}}{\reviewtitlepage}{%                 \reporttitlepage             }         }     }                    \newcommand{\myoneauthorsCN}{{\kaishu \large{\myfirstauthorCN}}\\                  \myfirstaffiliationCN \\ \myfirstemail}          \newcommand{\mytwoauthorsCN}{{\kaishu \large{\myfirstauthorCN}}\\                 \myfirstaffiliationCN \\ \myfirstemail \\         {\kaishu \large{\mysecondauthorCN}} \\ \mysecondaffiliationCN \\         \mysecondemail}          \newcommand{\mythreeauthorsCN}{{\kaishu \large{\myfirstauthorCN}}\\                \myfirstaffiliationCN \\ \myfirstemail \\         {\kaishu \large{\mysecondauthorCN}} \\ \mysecondaffiliationCN \\         \mysecondemail \\         {\kaishu \large{\mythirdauthorCN}} \\ \mythirdaffiliationCN \\         \mythirdemail}          \newcommand{\printtitlepageCN}{%     \vspace*{0.5mm}     \begin{center}         \renewcommand{\baselinestretch}{1.3}                                      \zihao{3}\mytitleCN\\[4mm]         \ifthenelse{\equal{\mysecondauthorCN}{null}}{\myoneauthorsCN}{                 \ifthenelse{\equal{\mythirdauthorCN}{null}}{\mytwoauthorsCN}{                  \mythreeauthorsCN             }                                                                     }         \\[4mm]         \end{center}         \renewcommand{\baselinestretch}{1.3}                                          \zihao{5} \hspace*{\parindent} \myabstractCN         }                    \usepackage{enumitem}     \setenumerate{itemsep=0pt,partopsep=0pt,parsep=\parskip,topsep=5pt}     \setitemize{itemsep=0pt,partopsep=0pt,parsep=\parskip,topsep=5pt}     \setdescription{itemsep=0pt,partopsep=0pt,parsep=\parskip,topsep=5pt}      I was trying to compile this article via LuaLaTeX               \documentclass[b5paper,11pt,onecolumn,twoside,UTF8]{article}          \usepackage{SLEN}            \begin{document}       Hello World!     \end{document}      But got a fatal crash:               This is LuaTeX, Version beta-0.70.2-2012060719 (MiKTeX 2.9 64-bit)           ...     (D:/CTEX/MiKTeX/tex/generic/oberdiek/ifpdf.sty){C:/ProgramData/MiKTeX/2.9/pdftex/config/pdftex.map}{D:/CTEX/MiKTeX/fonts/sfd/ttf2pk/UGBK.sfd}{D:/CTEX/MiKTeX/fonts/sfd/ttf2pk/Unicode.sfd     !LuaTeX error (file D:/CTEX/MiKTeX/fonts/sfd/ttf2pk/Unicode.sfd): invalid range     :     _0xFFFF           ==> Fatal error occurred, no output PDF file produced!          LuaLaTeX failed to create a pdf file.     For possible explanations start the command from the Command Prompt...      What I want to do is to make it can be compiled by LuaLaTeX.


title: Adding a "passive" plot in pgfplots

text: I would like to add a plot to a `pgfplots` figure, but such that it doesn't change the automatically computed limits. for example:               \documentclass{article}     \usepackage{tikz,pgfplots}     \begin{document}     \begin{tikzpicture}     \begin{axis}%[ymin=-6,ymax=6]     \addplot+ {x};     \addplot+ {x^2};     \end{axis}     \end{tikzpicture}     \end{document}      As written, the secont plot alters the limits. I could manually specify the limits (by removing the comment), but that's precisely what I want to avoid. Is there an option for this? I've found the `forget plot` option, but that's not quite what I need.


title: Creating command: FanceVerb Error, Paragraph ended before

text: Hi and sorry if that question might be already asked. I try to create a command like this:               \documentclass{scrbook}          \newcommand{\code}[1]{\texttt{#1}}          \newcommand{\smallx}[1]{          \begin{center}             \begin{Verbatim}[commandchars=\\\{\}]                      \code{#1}                  \end{Verbatim}         \end{center}      }          \begin{document}              \smallx{tensor.\textbf{vector}(name=None, dtype=config.floatX)}          \end{document}      which I hoped I could use like this:               \smallx{namespace.\textbf{vector}(name=None, dtype=config.floatX)}      to display simple code-like lines with a short command. Actually it is working. The PDF gets created but I also get those errors: > FancyVerb Error: ...f{vector}(name=None, dtype=config.floatX)} (followed by: > ) and > Paragraph ended before \FV@BeginScanning was complete. > ...f{vector}(name=None)} (followed by: ) and the output looks like this: ![enter image description here](http://i.stack.imgur.com/vpZ3x.png) Could anyone explain to me what I need to do to get rid of these errors and make it display just the input of `\smallx{}`