title: How to convert a text bibliography into bibtex?

text: I have a large bibliography (200+ references) in text form (in IEEE style) and I want to convert all of it into bibtex. Are there any tools available to do this? The text is in this form:-               [6] Ganglia, 2011. http://ganglia.sourceforge.net/ (last accessed on 27/12/2011)      [7] M. Massie et al., “The ganglia distributed monitoring system: design, implementation, and experience”, Parallel Computing 30: 817–840, 2004.      [8] Nagios, 2011. http://www.nagios.org/ (last accessed on 27/12/2011)      [9] Spanoudakis G, Kloukinas C. MahbubK.,“The SERENITY Runtime Monitoring Framework, In Security and Dependability for Ambient Intelligence”, In Security and Dependability for Ambient Intelligence, (eds) Spanoudakis G., Mana A., Kokolakis S., Advances in Information Security Series, Springer, ISBN-978-0-387-88775-3, pp. 213-238, 2009      [10] Foster H., Spanoudakis G., "Advanced Service Monitoring Configurations with SLA Decomposition and Selection", 26th ACM Symposium Applied Computing – Track on Service Oriented Architecture and Programming, March 2011


title: Change font of mathematics numbers

text: I have a document in which the text is typeset in Garamond. The mathematics symbols are not typeset in Garamod, which is the way I like it. However, I would like the numbers 0...9 to be typeset in Garamond. How do I achieve this? EDIT: I am emphasizing that I do not want all my mathematics in Garamond, only the digits 0...9


title: Column format in longtable

text: I'm using longtable and I was wondering if there was a possibility to set font format for 1 specific column. For example, I would like to have the forth column in italic.               \begin{longtable}[1]{llllrr}          \caption{XXXX} \\        \hline     \textbf{Order} & \textbf{Family} & \textbf{Genus} & \textbf{Specie} & \textbf{Average abundance} & \textbf{Average length (cm)} \\        \hline     Acipenseriformes & Acipenseridae & Acipenser & Brevirostrum & 3.67 & 59.90 \\         &  &  & Oxyrinchus & 2.50 & 27.81 \\         & Polyodontidae & Polyodon & Spathula & 1.50 & 14.25 \\        Anguilliformes & Anguillidae & Anguilla & Rostrata & 1.38 & 43.64 \\         & Congridae & Conger & Oceanicus & 1.00 & 20.10 \\        Atheriniformes & Atherinopsidae & Membras & Martinica & 12.33 & 6.69 \\         &  & Menidia & Menidia & 2.50 & 6.72 \\        Aulopiformes & Synodontidae & Synodus & Foetens & 1.90 & 15.92 \\        Batrachoidiformes & Batrachoididae & Opsanus & Beta & 2.58 & 15.30 \\         &  &  & Pardus & 1.50 & 16.52 \\         &  &  & Tau & 4.05 & 19.29 \\         &  & Porichthys & Plectrodon & 1.20 & 28.51 \\        Beloniformes & Belonidae & Strongylura & Marina & 6.00 & 20.15 \\        Carcharhiniformes & Carcharhinidae & Carcharhinus & Isodon & 1.00 & 38.00 \\         &  &  & Limbatus & 1.00 & 39.20 \\         &  &  & Porosus & 1.00 & 50.50 \\         & Sphyrnidae & Sphyrna & Tiburo & 1.00 & 37.47 \\         & Triakidae & Mustelus & Canis & 4.67 & 53.95 \\        Clupeiformes & Clupeidae & Alosa & Aestivalis & 3.62 & 7.95 \\         &  &  & Pseudoharengus & 6.38 & 7.35 \\         &  &  & Sapidissima & 7.33 & 10.43 \\         &  & Brevoortia & Gunteri & 35.17 & 7.99 \\         &  &  & Patronus & 20.81 & 8.79 \\         &  &  & Smithi & 1.00 & 12.20 \\         &  &  & Tyrannus & 5.69 & 13.19 \\         &  & Clupea & Harengus & 21.11 & 10.08 \\         &  & Dorosoma & Cepedianum & 14.26 & 16.91 \\         &  &  & Petenense & 11.85 & 10.37 \\         &  & Etrumeus & Teres & 1.00 & 20.00 \\         &  & Harengula & Jaguana & 2.47 & 9.70 \\         &  & Opisthonema & Oglinum & 2.22 & 8.46 \\         &  & Sardinella & Aurita & 3.00 & 13.07 \\         & Engraulidae & Anchoa & Hepsetus & 8.66 & 6.81 \\      \hline     \hline     \end{longtable}      * * * One more thing, how to avoid the header title (here specices) to have italic?


title: Just save colored pages of a document?

text: How can I just save the colored pages of a document? I want to print the colored pages on another printer...


title: Big Euclidean norm?

text: I would like to replace the Euclidean norm and the first pair of brackets with bigger ones but I get errors. Can you help me to fix it?                \documentclass[11 pt,a4paper,oneside,openany, notitlepage]{article}         \input epsf         \usepackage{amsmath, amssymb, graphics}         \newcommand{\mathsym}[1]{{}}         \newcommand{\unicode}[1]{{}}         \newcounter{mathematicapage}         \marginparwidth 0pt         \oddsidemargin 0pt         \evensidemargin 0pt         \marginparsep 0pt         \linespread{1.5}         \topmargin 0pt         \textwidth 6.5in         \textheight 8.5 in              \begin{document}         \begin{equation}         Q(\theta):= \|(a,b,c) \|^2         \end{equation}         \end{document}


title: Why doesn't latex2html beautify quotes?

text: Pushing the following through latex2html:               \documentclass{article}     \begin{document}     Why doesn't latex2html beautify ``quotes?''     \end{document}      for me produces html that includes               Why doesn't latex2html beautify ``quotes?''      It is fundamental to LaTeX to recognize single and double quotes and replace them with typographically pleasing versions -- this does happen of course with pdflatex acting on this input, why does latex2html drop the ball? I checked the man page, is there a switch I'm missing?


title: Multiline equation with specific indentation style

text: I have a multiline equation of the following type:               \begin{equation}     \begin{split}     f(x,y) & =a\\     & =b\\     & +c\\     & +d.     \end{split}     \end{equation}      But the output I would like to have is as follows:                f(x,y) = a             = b               + c               + d      That is, the lines _continuing_ the sum shall have additional indentation, that is, the +'s shall not be directly below the "=". Whatever I tried didn't work as intended. Do you have any suggestions as of how to accomplish this?


title: Title Suppressed Due to Excessive Length

text: It is appearing this strange message (only on the right side): ![enter image description here](http://i.stack.imgur.com/qekes.png) On the left side the title appears normally: ![enter image description here](http://i.stack.imgur.com/CsPrN.png) I have both `\title{...}` and `\authorrunning{}`. Even If i write a title of only 5 chars inside authorruning the same error message (on the right) gets displayed (I am using `\documentclass[runningheads,a4paper]{llncs}`) Working example (see page 3):               \documentclass[runningheads,a4paper]{llncs}          \usepackage{amssymb}     \setcounter{tocdepth}{3}     \usepackage{graphicx}          \usepackage{url}     \urldef{\mailsa}\path|email1|     \urldef{\mailsb}\path|email2|        \newcommand{\keywords}[1]{\par\addvspace\baselineskip     \noindent\keywordname\enspace\ignorespaces#1}          \begin{document}          \mainmatter  % start of an individual contribution          % first the title is needed     \title{LONG TITLE TITLE TITLE TITLE TITLE TITLE TITLE TITLE TITLE TITLE TITLE TITLE TITLE TITLE }               % the name(s) of the author(s) follow(s) next     %     % NB: Chinese authors should write their first names(s) in front of     % their surnames. This ensures that the names appear correctly in     % the running heads and the author index.     %     \author{first     \and second}     %     \authorrunning{SHORT TITLE TITLE}     % (feature abused for this document to repeat the title also on left hand pages)          % the affiliations are given next; don't give your e-mail address     % unless you accept that it will be published     \institute{Springer-Verlag, Computer Science Editorial,\\     Tiergartenstr. 17, 69121 Heidelberg, Germany\\     \mailsa\\     \mailsb\\     \url{http://www.springer.com/lncs}}          %     % NB: a more complex sample for affiliations and the mapping to the     % corresponding authors can be found in the file "llncs.dem"     % (search for the string "\mainmatter" where a contribution starts).     % "llncs.dem" accompanies the document class "llncs.cls".     %          \toctitle{TOCTITLE}     \tocauthor{TOCAUTHOR}     \maketitle               \begin{abstract}     AAA.     \keywords{AAA.}     \end{abstract}          \section{sec}      unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Nemo enim ipsam voluptatem, quia voluptas sit, aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos, qui ratione voluptatem sequi nesciunt, neque porro quisquam est, qui dolorem ipsum, quia dolor sit, amet, consectetur, adipisci v'elit, sed quia non numquam eius modi tempora incidunt, ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit, qui in ea voluptate velit esse, quam nihil molestiae consequatur, vel illum, qui dolorem eum fugiat, quo voluptas nulla pariatur? [33] At vero eos et accusamus et iusto odio dignissimos ducimus, qui blanditiis praesentium voluptatum deleniti atque corrupti, quos dolores et quas molestias excepturi sint, obcaecati cupiditate non provident, similique sunt in culpa, qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio, cumque nihil impedit, quo minus id, quod maxime placeat, facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet, ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Nemo enim ipsam voluptatem, quia voluptas sit, aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos, qui ratione voluptatem sequi nesciunt, neque porro quisquam est, qui dolorem ipsum, quia dolor sit, amet, consectetur, adipisci v'elit, sed quia non numquam eius modi tempora incidunt, ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit, qui in ea voluptate velit esse, quam nihil molestiae consequatur, vel illum, qui dolorem eum fugiat, quo voluptas nulla pariatur? [33] At vero eos et accusamus et iusto odio dignissimos ducimus, qui blanditiis praesentium voluptatum deleniti atque corrupti, quos dolores et quas molestias excepturi sint, obcaecati cupiditate non provident, similique sunt in culpa, qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio, cumque nihil impedit, quo minus id, quod maxime placeat, facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet, ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Nemo enim ipsam voluptatem, quia voluptas sit, aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos, qui ratione voluptatem sequi nesciunt, neque porro quisquam est, qui dolorem ipsum, quia dolor sit, amet, consectetur, adipisci v'elit, sed quia non numquam eius modi tempora incidunt, ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit, qui in ea voluptate velit esse, quam nihil molestiae consequatur, vel illum, qui dolorem eum fugiat, quo voluptas nulla pariatur? [33] At vero eos et accusamus et iusto odio dignissimos ducimus, qui blanditiis praesentium voluptatum deleniti atque corrupti, quos dolores et quas molestias excepturi sint, obcaecati cupiditate non provident, similique sunt in culpa, qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio, cumque nihil impedit, quo minus id, quod maxime placeat, facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet, ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat       unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Nemo enim ipsam voluptatem, quia voluptas sit, aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos, qui ratione voluptatem sequi nesciunt, neque porro quisquam est, qui dolorem ipsum, quia dolor sit, amet, consectetur, adipisci v'elit, sed quia non numquam eius modi tempora incidunt, ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit, qui in ea voluptate velit esse, quam nihil molestiae consequatur, vel illum, qui dolorem eum fugiat, quo voluptas nulla pariatur? [33] At vero eos et accusamus et iusto odio dignissimos ducimus, qui blanditiis praesentium voluptatum deleniti atque corrupti, quos dolores et quas molestias excepturi sint, obcaecati cupiditate non provident, similique sunt in culpa, qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio, cumque nihil impedit, quo minus id, quod maxime placeat, facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet, ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Nemo enim ipsam voluptatem, quia voluptas sit, aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos, qui ratione voluptatem sequi nesciunt, neque porro quisquam est, qui dolorem ipsum, quia dolor sit, amet, consectetur, adipisci v'elit, sed quia non numquam eius modi tempora incidunt, ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit, qui in ea voluptate velit esse, quam nihil molestiae consequatur, vel illum, qui dolorem eum fugiat, quo voluptas nulla pariatur? [33] At vero eos et accusamus et iusto odio dignissimos ducimus, qui blanditiis praesentium voluptatum deleniti atque corrupti, quos dolores et quas molestias excepturi sint, obcaecati cupiditate non provident, similique sunt in culpa, qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio, cumque nihil impedit, quo minus id, quod maxime placeat, facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet, ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Nemo enim ipsam voluptatem, quia voluptas sit, aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos, qui ratione voluptatem sequi nesciunt, neque porro quisquam est, qui dolorem ipsum, quia dolor sit, amet, consectetur, adipisci v'elit, sed quia non numquam eius modi tempora incidunt, ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit, qui in ea voluptate velit esse, quam nihil molestiae consequatur, vel illum, qui dolorem eum fugiat, quo voluptas nulla pariatur? [33] At vero eos et accusamus et iusto odio dignissimos ducimus, qui blanditiis praesentium voluptatum deleniti atque corrupti, quos dolores et quas molestias excepturi sint, obcaecati cupiditate non provident, similique sunt in culpa, qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio, cumque nihil impedit, quo minus id, quod maxime placeat, facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet, ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat               \end{document}


title: \specials in pdftex

text: In some old documents I used `\special`. However, in my new documents, I want to run pdfLaTeX, because I have other figures in PDF format. If I run pdfTeX on the `.tex` file, it rejects the `specials`. Is there any way to get pdfTeX to accept specials?


title: Package for typesetting Feynman diagrams (efficiency of `feynmp` and `tikz`)

text: Is there any good package for typesetting lots of Feynman diagrams? My question arise because Feynmp: Circle with three vertices lead me take a look at the documentation for the `feynmf`/`feynmp` package, and didn't like the package very much. In my opinion this package has several draw-backs: it doesn't work with `pdflatex` unless you get help from `@egreg` (How to use kile with feynmf or feynmp?), the notation is not very intuitive (what do `left=.5` mean?), etc. I thought that there must be some better package for typesetting Feynman diagram (e.g. something that builds on TikZ rather than `metapost`), but CTAN gave me only this. So do you know something better than `feynmp`? * * * **EDIT:** Since @cmhughes comment suggest to use `tikz` rather than `feynmp` (and no one has suggested any other packages), the questions are this:   * _Which package is most efficient for typesetting Feynman diagrams,`feynmp` or `tikz`?_   * _Which package produces the best (this means the most beautiful) results?_ In order for `tikz` to really compete with `feynmp` (on this particular battlefield), the code must be approximately as simple as with `feynmp`, and the results must be at least as good. Below you will find some examples of Feynman diagrams made using `feynmp`. How can you typeset diagrams as simple as possible using `tikz`? ![Feynman Diagrams](http://i.stack.imgur.com/WnydH.png) Code:               \documentclass{memoir}          \usepackage{feynmp}          \begin{document}     \unitlength=1mm      \centering          \begin{fmffile}{photon} % Tree-level interaction     \begin{fmfgraph*}(40,25)     \fmfkeep{photon}     \fmfleft{i1,i2}     \fmfright{o1,o2}     \fmf{fermion}{i1,v1,i2}     \fmf{fermion}{o1,v2,o2}     \fmf{photon}{v1,v2}     \end{fmfgraph*}     \end{fmffile}     ~     \begin{fmffile}{gluon}     \begin{fmfgraph*}(40,25)     \fmfleft{i1,i2}     \fmfright{o1,o2}     \fmf{fermion}{i1,v1,i2}     \fmf{fermion}{o1,v2,o2}     \fmf{gluon}{v1,v2}     \end{fmfgraph*}     \end{fmffile}          \plainbreak{1}          \begin{fmffile}{self} % Self-interaction     \begin{fmfgraph*}(40,25)     \fmfleft{i}     \fmfright{o}     \fmf{plain}{i,v1}     \fmf{fermion}{v1,v2}     \fmf{plain}{v2,o}     \fmf{photon,left}{v1,v2}     \end{fmfgraph*}     \end{fmffile}     ~     \begin{fmffile}{loop} % Loop correction     \begin{fmfgraph*}(40,25)     \fmfkeep{loop}     \fmfleft{i1,i2}     \fmfright{o1,o2}     \fmf{fermion}{i1,v1,i2}     \fmf{fermion}{o1,v4,o2}     \fmf{photon}{v1,v2}     \fmf{photon}{v3,v4}     \fmf{fermion,right,tension=.2}{v2,v3,v2}     \end{fmfgraph*}     \end{fmffile}          \begin{fmffile}{penguin} % Penguin?     \begin{fmfgraph*}(70,80)     \fmftop{t1,t2}     \fmfbottom{b1,b2}     \fmf{fermion}{t1,v1}     \fmf{fermion}{v2,t2}     \fmf{fermion,tension=.5}{v1,v3,v2}     \fmf{boson,tension=.5}{v1,v2}     \fmf{gluon}{v3,v4}     \fmf{fermion}{b1,v4,b2}     \end{fmfgraph*}     \end{fmffile}          \end{document}      Please, note that Feynman Diagrams with tikz and texample: Feynman diagram do not answer this question.


title: Custom document classes with embedable external macros?

text: I'm fairly new to LaTeX so I don't really know much yet. Is there a way I can make a custom document class that embeds an external document containing custom macros? For example, I have right now a **MyBook.cls** file with a few small changes from the default **Book** document class. I would also like to define a bunch of `\newcommand{}` macros, but I don't want to have to do it in every custom document class.


title: Chemfig, TikZ, circle diagram

text: I have a problem with drawing such a complex diagram in using Chemfig (a picture of diagram should be attached) . The Chemfig manual describes how to draw curved and U-type arrows but all my attempts to combine both of them into desired diagram failed. If someone comes up with an idea how to do that I'll be very grateful. Thank you. ![Circle diagram](http://i.stack.imgur.com/msyrX.png)


title: Put a table* at the bottom of a page?

text: In a two column document in LaTeX, is there any way to put a `table*` (a `table` spanning both columns) at the bottom of the page? The obvious doesn't work:               \begin{table*}[b]   % b!, hb, hb!, etc. doesn't work either        %... a wide table     \end{table*}


title: PDF links generated by \cite do not work when using project component files

text: When using the project files shown below, links generated by `\cite[…]` are displayed as links, but when I click on them nothing happens. But when `\completepublications[…]` is directly written in **main.tex** , everything works as expected. My project is a bit more complex, so that I would like to use separate component files and include them in the main file. But how to make links work? (Is this a bug?) **main.tex** :               \project test-project          \setupinteraction[state=start]          \setupbibtex[database={literature}]     \setuppublications[refcommand=short, numbering=short]          \startproduct test-product         \component a-chapter         \component bibliography  % does not work         %\completepublications[criterium=text]  % this works     \stopproduct      **a-chapter.tex** :               \startcomponent a-chapter         \chapter{A Chapter}              Some text. \cite[birche2012]     \stopcomponent      **bibliography.tex** :               \startcomponent bibliography         \completepublications[criterium=text]     \stopcomponent      **literature.bib** :               @article{birche2012,         Title = {{Complete System Power Estimation Using Processor Performance Events}},         Author = {W. Lloyd Birche and Lizy K. John},         Journal = {IEEE TRANSACTIONS ON COMPUTERS},         Month = {4},         Number = {4},         Pages = {563-577},         Volume = {61},         Year = {2012}     }      Context version is _2012.05.30 11:26_.


title: How to adjust line numbers of algorithm2e package?

text: When using line numbers in the algorithm2e package, the line numbers are placed left of the text block, not directly below the text. See page 5 of the algorithm2e manual. Is it possible to place them below the text ? Update: Line numbering now:                  Input ...        Output ...     1: Code ...      Line numbering I want:               Input ...     Output ...     1: Code ...


title: Adding custom macros to completion list with AUCTeX

text: I would like AUCTeX (that is, Emacs with auctex loaded) to suggest more LaTeX macros when using completion (`M-Tab` or `C-Ret`) than it does by default. I would like to have macros from packages I have downloaded on CTAN and macros I have written. I would also like it if it would complete `\section` or other macros that can be accessed via `C-c C-s`, `C-c C-e` etc. Solution: I could not make the code quoted by AUCTeX wiki work. i get an error on loading emacs but did not looked much further in because I ca bear the nuisance of appending a few lines to my files. The link given by Ben (Automatic add of private macros contains a working solution, thus I accept his answer. I had come across this page in my researchs but somehow messed up things. What eventually worked for me was using `TeX-auto-generate TEX AUTO` to create a bunch of .el files in the ~/.emacs.d/auctex/auto direcoty. Note that this directory must be created _beforhand_. For some reasons `TeX-macro-private` did not achieve the wanted result.


title: How to prevent pagebreaking before example environment?

text: In my document, the page happens to break right after the line that introduces an example environment:               \documentclass{article}     \usepackage{gb4e}          \begin{document}     \noindent Here are my results:         \begin{exe}             \ex This is my first result.             \ex This is my second result.         \end{exe}     \end{document}      I tried to put `Here are my results:\nobreak`, as indicated in this answer, but that changed nothing for me. What should I do?


title: Creating a custom macro for limits

text: I'd like to experiment with making custom macros to see if I can find a way to structure things to efficiently take notes in class starting in January... as it is right now, there's a lot of typing to do repetitive things. Is there a way I can define a `\newcommand{}` macro to do something like this? `\l{x}{\infty}f(x)` would translate to `\lim_{x\to\infty}f(x)`? I'd like to be able to just type as little as possible, and have the `\rightarrow` be automatically put into the typesetted document.


title: Add between row spacing in a complex matrix

text: I have the following matrix:               \documentclass{article}     \usepackage{amsmath}          \begin{document}     $\begin{bmatrix}         \begin{vmatrix}     168 & 368 \\      368 & 1026      \end{vmatrix} & \begin{vmatrix}     26 & 368\\      70 & 1026     \end{vmatrix} & \begin{vmatrix}     26 & 168\\      70 & 368      \end{vmatrix}\\     \begin{vmatrix}     26 & 70\\      368 & 1026     \end{vmatrix} & \begin{vmatrix}     5 & 70\\      70 & 1026     \end{vmatrix} & \begin{vmatrix}     5 & 26\\      70 & 368     \end{vmatrix}\\      \begin{vmatrix}     26 & 70\\      168 & 368     \end{vmatrix} & \begin{vmatrix}     5 & 70\\      26 & 368     \end{vmatrix} & \begin{vmatrix}     5 & 26\\      26 & 168     \end{vmatrix}     \end{bmatrix} =      \begin{bmatrix}     36944 & -916 & -2192 \\     \end{bmatrix}     $     \end{document}      Each row contains a 2x2 determinant. The problem is that the vertical lines of the neighboring determinants are touching, creating the impression that this is a 3x1 matrix with three 6x2 determinants. I have experimented a little with adding `[3pt]` after the delimiting \\\, but had no success. Any help will be appreciated! By the way, I am calling LaTeX from a Markdown document, which means using extra/alternative packages is highly undesirable (albeit possible after a manual intervention during text conversion). Thanks in advance!


title: Changing the color of the typeblock by changing the color of the text

text: Admittedly a looooooong shot... We're all taught that one of the prime objectives of typesetting is providing a uniform typeblock color (ie. the proportion of ink / no-ink on a page) as that is supposed to aid in reading and minimize distraction. That's the whole idea behind, for example, the `microtype` package So I was thinking... why not take the definition of "color" a bit more textually: I'd like to change the color of a line depending on its tightness. To put it another way: I'd like the actual color of the text to vary smoothly from pure 100% black for normal lines up to, say, 85% black for tight lines. This should be done automatically for every line in the typeblock (of course, we'd like to avoid abrupt changes in blackness, so a maximum of, say, 5% change in color should be enforced between consecutive lines). I'm not sure this will be visually appealing, typographically sound or even doable, but felt like trying and stumbled on a brick wall... anyone care to share any ideas? PDFLaTeX preferred, but non-exclusive.


title: \ifnum and pgfmath: error

text: In the following example I want to use \ifnum to compare two numbers computed by pgfmath, for simplicity I use simply 1 and 2 in the example below. Compiling this code gives me the error:                   ERROR: Missing = inserted for \ifnum.          --- TeX said ---     <to be read again>                         .     l.11    \ifnum \one                        <\two     --- HELP ---     From the .log file...          I was expecting to see `<', `=', or `>'. Didn't.      The example is:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{calc}          \begin{document}               \begin{tikzpicture}        \pgfmathsetmacro{\one}{1};        \pgfmathsetmacro{\two}{2};        \ifnum \one<\two        \draw (0,0) -- (0,1);        \fi     \end{tikzpicture}      Any idea how to solve this?


title: How do I turn off default paragraph indentation?

text: > **Possible Duplicate:**   >  No paragraph indentation everywhere, except for specific paragraphs I'm writing a LaTeX article, and by default paragraphs are being indented. I'd like to opt-in to indentation by typing `\indent` before each paragraph, instead of needing to opt-out with `\noindent`. How can I achieve this?


title: Possible to combine "..." and "x/y" in TikZ's foreach?

text: I'll start with a simple, minimal non-working example:               \documentclass{article}     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}     \foreach \x/\y in {1/20,2/18,...,10/2}       \node at (\x,0) {\y};     \end{tikzicture}     \end{document}      The point, as you probably understand from the example, is to iterate over two variables at the same time that change by the same amount for each run, without having to write out all the `x/y` pairs explicitly. Had this worked, the expected output would be ![enter image description here](http://i.stack.imgur.com/NKXaq.png) but the compilation halts with an `Illegal unit of measure ...` error. I know the manual doesn't say anything about it, so I'm kind of expecting the answer to simply be "no, not possible". Am I missing something obvious, or is this something that TikZ can't do? (By the way, I haven't come across a situation where I've needed this, it's just something that I came to wonder about. And I could do the loop with something else, _e.g._ , Lua, anyway.)


title: How to rotate a group of figures (subfigure)

text: 3 figures side by side... I want to put them horizontally, so that you need to rotate the book by 90° to read the figures and captions. Now, I want to rotate this:                  \begin{figure}[]     \subfigure{             \includegraphics[width=0.28\textwidth]{figures/a.png}         }         \label{sub:graph}     \subfigure{             \includegraphics[width=0.28\textwidth]{figures/b.png}         }         \label{sub:mobile}     \subfigure{             \includegraphics[width=0.28\textwidth]{figures/c.png}         }         \label{sub:dsk}          \caption{Main cap. \ref{sub:graph} sub cap1 \ref{sub:mobile} sub cap2 and \ref{sub:desktop} sub cap3.}     \label{fig:myFig}        \end{figure}


title: KOMA handling of even/odd pages

text: I don't know if this is a bug or a configuration option that I've missed, but I've just noticed that in my document, KOMA script is putting odd pages on the right and even on the left, and yet the margins are configured so that the inside margins are less than the outside margins. I didn't notice this before because I wasn't viewing my document in dual-page mode, but now that I've noticed it how can I change it so it gets the arrangement right?


title: Change font size of an align environment

text: In a document, I'd like to change the font size of a **single** align environment (not globally throughout the document). What is the proper way to do this? I've been using               Preceding paragraph.     {\tiny         \begin{align}             a &< b         \end{align}     }     Following paragraph.      But this seems to cause some weird artifacts (e.g., an unwanted indentation at the beginning of the following paragraph).


title: Hyperref and multiple parts in a document

text: I am using the `article` document class with `amsthm` and `hyperref`. I have divided the article into parts. I would like the section under each part to start from 1. However, once I do that inserting `\setcounter{section}{0}` just after `\part{the_title}`, I get the references messed up. The \ref works fine in the first part but the \ref in the second part refers to refs in the first part and not to the ref belonging to that same section. How do I get around this? This is what I have in mind: Part I: Background 1 Section_1 2 Section_2 Part II: Methods 1 Section_1 2 Section_1 One more, I want to put "Typeset In Latex"($Typeset in {\bf \LaTeX}$) in the footnote in the title page. However, this footnote is numbered which I do not want. I was able to suppress the numbering using `\let\thefootnote\relax\footnotetext`, but the rest the footnote numbers get suppressed in the article. How do I suppress the footnote number just for one time. Thank you. P.S. I can swap the numbers using `\swapnumbers`.


title: Hyphenation within multicolumn

text: I've got the following table, which I'd prefer not to split, and it's slightly too wide for the page. How can I make some of the column headings hyphenate? I don't want to have to define a fixed width of each column or something like that; it'd be much simpler if I could make "Labiodental" be hyphenated as "Labio-dental", as that's the troublesome column.               \begin{table}[htpb]\small\capstart         \begin{center}             \begin{tabular}{|>{\bfseries}fc|c c|c c|c c|c c|c c|c c|c c|c c|c c|}                 \hline                 \SetRowStyle{\bfseries} & \multicolumn{2}{-c|}{Bilabial} & \multicolumn{2}{-c|}{Labiodental} & \multicolumn{2}{-c|}{Dental} & \multicolumn{2}{-c|}{Alveolar} & \multicolumn{2}{-c|}{Retroflex} & \multicolumn{2}{-c|}{Palatal} & \multicolumn{2}{-c|}{Velar} & \multicolumn{2}{-c|}{Glottal} \tabularnewline\hline                 Nasal & & m & & & & \textsubbridge{n} & & & & & & ɲ & & & & \tabularnewline%\hline                 Plosive & p & & & & \textsubbridge{t} & & & & & & & & k & & & \tabularnewline%\hline                 Affricate & & & & & \multicolumn{2}{c|}{\textsubbridge{t}θ} & ts & & ʈʂ & & tɕ & & & & & \tabularnewline%\hline                 Fricative & & & f & \multirow{2}{*}{ʋ} & θ & \multirow{2}{*}{ð} & s & & ʂ & & ɕ & & x & & h & \tabularnewline%\cline{1-4} \cline{6-6} \cline{8-17}                 Approximant & & & \multicolumn{1}{r}{} & & \multicolumn{1}{r}{} & & & & & & & j & & w & & \tabularnewline%\hline                 Lateral & & & & & & & & l & & & & & & & & \tabularnewline%\hline                 Rhotic & & & & & & & & r\textasciitilde\textfishhookr & & & & & & & & \tabularnewline\hline             \end{tabular}             \caption{Consonants\label{tab:consonants}}         \end{center}     \end{table}


title: Using Asymptote with MiKTeX

text: Asymptote is shipped out with TeX Live, but not with MiKTeX, not even with a full installation. Do you nonetheless know a way for manual installation? MiKTeX needs to know the path of the `sty` files, and the Asymptote binary file needs to know the path of the `asy` scripts. Thought of adding the Asymptote folder to the list of registered root directories in MiKTeX, but MiKTeX complains, that this would be “Not a TDS-compliant root directory”. There is already a similar question: Using MikTex Portable, TexMaker, and Asymptote from a USB drive.


title: Getting floating objects in multicol environments

text: I am using `multicol` with 2 columns, and I would love to have my figures and tables to float, so that I don't have to manually mess around with the positioning anymore. I am aware of `figure*`, but I want my floats to just span one column, not both. A bit of research points to "won't work", but does anyone have an idea how I could accomplish that without breaking too much of my existing work?


title: Difference between ref, varioref and cleveref. Decision for a thesis

text: How can one make a quick decision what the best "ref" for a thesis in `pdflatex` with `hyperref` is? After a few hours reading I do not know more than   * `ref` is used by everyone who does not know about the other ~ref and works stable    * `varioref` somehow works together with hyperref makes sometimes trouble with pagebreaks   * `cleveref` is still in beta(?) and does the same like varioref What are the essential questions that I have to ask myself to find out which method fits best?


title: How to number propositions by part in beamer?

text: My presentation has three parts about three different papers. I would like to number the theorems and propositions within each part (paper).


title: angled fraction like superscript

text: I would like to draw a fraction like symbol that looks similar to `\frac{a}{b}` BUT is angled so that the a is higher than the b and the slash is angled. Sort of like a `%` sign but not as drastic. Not sure if this character will come out properly: `½` but it looks similar to that. I would like some way to control the angle of the slash and the angle of anti- diagonal(the line drawn through the center of gravities of the upper and lower numbers). The "anti-diagonal" of the `%` sign has a very similar angle to that of the slash and for my purposes it looks too "upright". I would also like to "nest" the fractions so but not have the size change(or make it optional). Something like a/b/c with all the slashes and letters the same size. ![frac](http://www.freeimagehosting.net/t/9l2x7.jpg) There are four quantities I would like to control. The slash length and angle and the anti-diagonal angle and the letter separation. I would like to use this similar to a frac. I don't mind having less control but basically looking for something that looks visually correct.


title: Latex can't find .sty files altough packages are installed -- TexLive, Ubuntu 12.04

text: I just installed TexLive on a i386 Ubuntu 12.04 LTS machine. Now when I try to compile a TeX file I get following error message:               ! LaTeX Error: File `caption.sty' not found.      kpsewhich caption.sty gives               /usr/local/texlive/2013/../texmf-local/tex/latex/caption/caption.sty      I also tried installing caption with tlmgr but after doing that it doesn't work either. The last thing I did was copy the contents of the usr/local/texlive/2013/texmf-dist/ folder to usr/local/texlive/texmf-local/ in hope that it maybe would work. When i try to compile these are some of the lines that come before the error.               (/usr/share/texmf-texlive/tex/latex/base/size10.clo))     (/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty     (/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)     (/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty     (/usr/share/texmf-texlive/tex/latex/graphics/trig.sty)      Does anybody know a solution to this?


title: Identifying key in BibLaTeX map source

text: In a comment to the question Notes after bibliography entry with Biber and BibLaTeX Marco Daniel suggested to use `\DeclareSourcemap` to add notes to specific entries. The most immediate solution would be to have a definition of source map like, where we search entries based on they BibTeX `key`, thus using something like:               \DeclareSourcemap{       \maps[datatype=bibtex]{         \map{           \step[fieldsource=entrykey, match={key1},                 fieldset=note, fieldvalue={This is a note}]         }       }     }      However, it does not work: the `note` field is not inserted for the appropriate entry. However, if a different field is used, e.g., `author`               \DeclareSourcemap{       \maps[datatype=bibtex]{         \map{           \step[fieldsource=author, match={Author},                 fieldset=note, fieldvalue={This is a note}]         }       }     }      then, the note is inserted. I think that an MWE in this case would not be required, but since somebody is going to ask for it, here it is:               \documentclass{article}     \usepackage{filecontents}     \usepackage[style=numeric]{biblatex}     \addbibresource{\jobname.bib}     \begin{filecontents}{\jobname.bib}     @article{key1,     author = {Author, John},     title  = {Title},     journal =  {A Journal},     year = 2012,     }     @article{key2,     author = {Author2, John},     title  = {Title},     journal =  {A Journal},     year = 2012,     }     \end{filecontents}     \DeclareSourcemap{       \maps[datatype=bibtex]{         \map{           \step[fieldsource=entrykey, match={key1},                 fieldset=note, fieldvalue={This is a note}]         }         \map{           \step[fieldsource=author, match={Author2},                 fieldset=note, fieldvalue={This is a note}]           }       }     }     \begin{document}     \nocite{*}     \printbibliography     \end{document}      So, the question is whether it is possible to use the BibTeX key (`entrykey`) in a biber mapsource specification, or what is the `field` that can be used and uniquely identifies a bibentry?


title: Make latexdiff mark differences in title

text: I am using latexdiff for showing the difference between two latex documents, but for some reason latexdiff is not displaying differences in the title of a document. Is there a way to fix this?


title: create scatter plot from dat file

text: I would create a scatter plot using pgfplots using data from my dat file that contains this data:               nodes     x         y       label          1.0000    14.1209   7.0332  a          2.0000     0.6367   16.6166 a          3.0000     5.5385   11.7053 a          4.0000     0.9234   10.9945 a          5.0000     1.9426   18.3439 b          6.0000    16.4692    5.7168 b          7.0000    13.8966   15.1440 a          8.0000     6.3420   15.0746 a          9.0000    19.0044    7.6089 b          10.0000    0.6889   11.3564 b      I would create a scatter plot where the first column is the label of every scatter while the two next colomn are x and y. The last column is a class that decide if the scatter has to be red or blue This is the code I had created                \begin{figure}     \centering     \begin{tikzpicture}         \begin{axis}[xlabel=metri,ylabel=metri]             \addplot[nodes near coords*={\thisrow{nodes}},                 scatter/classes={                     a={mark=*,blue},                     b={mark=*,red}                     },                     scatter, only marks,                     scatter src=explicit symbolic]              table[x=x,y=y,meta=label]                 {./MATLAB/grafici/network_map.txt};         \end{axis}     \end{tikzpicture}          \end{figure}      Unfortunately in this way I don't get the label. Something doesn't work


title: How to deal with zero padding using multiframe in the animate package?

text: In the `animate` package, using `\multiframe`, how to deal with zero padding? For example if I have 101 pictures from `pic0000.jpg` to `pic0100.jpg` and I want to do something like that:               \documentclass{article}     \usepackage{animate}     \usepackage[demo]{graphicx}     \begin{document}     \begin{animateinline}[controls]{6}     \multiframe{101}{i=0+1}{       The pic \i       \includegraphics[height=.45\textheight]{pic\i}      }     \end{animateinline}     \end{document}      but with the variable I varying from 0000 to 0100.


title: Extracting image from PDF to use in LaTeX document?

text: I need to include some graphs from a datasheet in my document, but of course I don't have the source files. What would be the best course of action? It's mostly logarithmic scale graphs.


title: How to best typeset "special" constants (complex unit i, Euler's number e,...)?

text: I'm trying to come up with a typographically appealing way to express "special" numbers such as the complex unit `i = sqrt(-1)` or Euler's number `e`. It has to be such that it cannot be confused with regular numbers (such as the running index `i`, for example), and would ideally work for serif as well as sans-serif fonts. I was briefly thinking of typesetting these numbers in bold, but found that bold face is often used to indicate vector quantities. **[Edit:** Johannes Küster suggests to use upright for constants (about 14 minutes into his talk). **]** I've seen double-stroked small letters too, and must say this isn't without appeal. I have no idea how to consistently typeset those, though. The (outdated?) bbm package seems to provide at least some basic functionality. What do you use to represent special numbers, why do use it, and how to you typeset your solution?


title: Set up TeXLipse for correct BibTeX creation / autocompletion

text: When I try to create my file with TeXLipse, it never creates the bibliography information correctly. I set up everything as described in the various tutorials. The current setup is like this:               /     /src     /src/doc.tex     /src/Bibliography.bib      I use `\bibliography{Bibliography}` to include the file and `\cite{abc}` to cite. But TeXLipse doesn't seem to build the bibliography correctly, and also it doesn't recognize the references for autocompletion when using `\cite{`... Do I somehow need to set up the builders in a different order, and if so, how do I do that in Eclipse?


title: Specify transparent background color?

text: I use Python-Sphinx to document some Python code I wrote. I'm using the `pngmath` extension to render LaTeX math expressions. The problem is, the background-color of the rendered images is white and the background color on which the images are shown differs from page to page. I can set the background color with               \usepackage{color}     \pagecolor{%color%}      but there does not seem to be a transparent color. How can I make the background color of the images transparent?


title: defining coordinates in advance in tikz figure

text: I am trying to create a circle of elements with some randomness to it. I want to predefined the coordinates to create complicated element. I am using this:               \newcommand{\elm}[2]{       \shade [ball color=red] (#1,#2) circle (4 pt);     }      and this:               \begin{tikzpicture}       \foreach \ang in {0,90,...,270}{         \pgfmathsetmacro{\r}{200pt}         \pgfmathsetmacro{\dx}{rand*2}         \pgfmathsetmacro{\dy}{rand*2}         \elm{{\r*cos(\ang) + \dx},{\r*sin(\ang)+\dy}}       }     \end{tikzpicture}      All I get is a blank sheet of paper without any figure. How can do this correctly?


title: ShareLatex beginner

text: The common message says: missing control sequence inserted               \resheading{Education}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \begin{itemize}     \item\ressubheading{completed high school with excellent grades}{Larisa, Greece}{}{2005}                         \item \ressubheading{Aristotle University of Thessaloniki}{Thessaloniki, Greece}{Ptyxion-BSc in Physics Department degree note 7.18 out of 10}{2005 - 2011}     \item \ressubheading{Chalmers University of Technology}{Gothenburg, Sweden}{MSc in Nanotechnology}{2013 - 2015}                 \item \ressubheading{University of Gothenburg} {Gothenburg, Sweden}{Erasmus program}{January 2009 - June 2010}       \item\ressubheading{Nanotechnology Basics}{Online Course by Coursera}{Rice University}{2013}       \item \ressubheading{Nanomechamical characterization for materials in Energy}{Webinar Series}{by Elsevier Ltd.}{2011}       \item \ressubheading{Force Curve and Force Volume Analysis}{Webinar}{by Image Metrology}{2011}       \end{itemize}


title: References in externalized pgfplots

text: I was writing on an document with a lot of pgfplots in it. Because of the memory limitation in LaTeX and in order to save some compiling time I tried out the `externalize` command. With most of the plots it perfectly worked out. But when I use the `\ref` command, namely `\ref{<legendname>}` the legend gets lost and instead there is a **??**. I think this question in a way is similar to Referencing externalized pgfplots with subfig and cleverref and Using reference with externalized pgfplot figure. But no answer to these questions could solve my problem. Even the use of `xr` and `zref` packages showed no effect. Am I just missing something? * * * MWE of the maindocument:               \documentclass{article}     \usepackage{zref-user}     \usepackage{xr-hyper}     \usepackage{pgfplots}     \usetikzlibrary{pgfplots.groupplots}     \usepgfplotslibrary{external}      \tikzexternalize     \externaldocument{part1}          \begin{document}     \input{part1}     \end{document}      * * * With `part1.tex` looking like this:               \begin{tikzpicture}         \begin{groupplot}[           group style= {  columns=3,xlabels at=edge bottom,                     y descriptions at=edge left,                     horizontal sep=2cm,group name=plots},         width=0.4\textwidth,         xtick=data,         legend columns=3]         \nextgroupplot[xlabel=site 1,legend to name=grouplegend]         \addplot coordinates {(1,20)(2,23)(3,24.5)};         \addlegendentry {AaAaA,BbBbB,CcCcC}%         \nextgroupplot[xlabel=site 2]         \addplot coordinates {(1,14)(2,16)(3,17)};         \nextgroupplot[xlabel=site 3]         \addplot coordinates {(1,10)(2,11.5)(3,12.25)};         \end{groupplot}       % Legend         \node at (plots c2r1.north) [anchor=south] {\ref{grouplegend}};     \end{tikzpicture}      * * * I'm writing with MikTeX 2.9 and the latest updates of the packages used. For compiling I used the command `pdflatex -enable-write18 <file name>`. I hope the MWE is short enough ;) and some knows how to solve this problem.


title: What's a simple way to typeset a small amount of Hebrew content using TeX?

text: You'll have to forgive me, I'm completely new to TeX and know basically nothing about it. What I'm looking to do is to create vowelized and unvoweled Hebrew content to be used in HTML5. Artscroll, in my humble opinion, has done the most incredible job of Hebrew typesetting that I've ever seen. Unfortunately, their site is down for Shabbat, so I can't fetch a image of what I'm talking about. How do major publishers like Artscroll/Mesorah typeset? I already have the Hadassah font they use for their content, but I'm completely oblivious when it comes to TeX layout. Are there any good tutorials available for what I'm looking to do? Is there a way I can write and preview TeX content live? Can output from TeX be easily converted to scalable/resizable HTML?


title: How to automatically generate a stack diagram for a PostScript expression?

text: The following figure shows a PostScript expression and its stack diagrams step by step. Is there any package to generate it out of the box? If there is no such a package, how to generate it automatically for any PostScript expression? I don't want to write my own interpreter for sure. ![enter image description here](http://i.stack.imgur.com/lvafB.png) Any methods are welcome.


title: Tabs in output file written by xelatex and pdflatex are different

text: I'm trying out pgfplots with `gnuplot` to generate the data. This works by having pgfplots write some stuff to an external file, run gnuplot on the file, and then use the generated data to plot the graph. The problem I'm having is that I get different behaviour under `xelatex` as `pdflatex` or `lualatex`. In `xelatex`, the data file is littered with `^^I` whereas in the other two formats these are tabs. It _appears_ that the code `^^I` is getting stored as a macro which then gets written out to the file, so possibly there's something funny going on with the `^^I` syntax: `xelatex` is reading it literally. Indeed, when I do `\show\pgfplots@TAB` (the macro in question) then for `pdflatex` and `lualatex` then I get a literal tab whereas for `xelatex` I get `^^I`. So how do I get a tab in `xelatex`? And why isn't `\gdef\pgfplots@TAB{^^I}` working? (The previous line in the code, by the way, is `\catcode`\^^I=12` \- I don't know if that has anything to do with it.)


title: Automatically emphasize \author names in bibliography and citations

text: This is a follow-up question to Make specific author bold using biblatex. Using `biblatex` and `biber` and either XeLaTeX or LuaTeX, would it be possible to extract all names from the `\author` command, which is mainly used for `\maketitle`, and automatically highlight (or “lowlight”) them in citations and bibliographies? Basically this is “just” asking how to extract names from `\author` (multiple ones split by `and`), parse for first/given names and last/family name and finally put these in the `\boldname` macro from the aforementioned answer.               %% \boldname{family name}{given name}{initials}     \newcommand*{\boldname}[3]{%       \def\lastname{#1}%       \def\firstname{#2}%       \def\firstinit{#3}}          \boldname{}{}{}


title: Org: Latex export creates lists instead of subsections

text: When I export the following org file to latex using `C-c C-e d`, the resulting tex file does not match my expectations in regards to the way the sections are being created. The exported subsections and subsubsections end up in itemize environments instead of `\subsection{}`'s. I tried to add `#+OPTIONS: H:3`, but the `H`-option does not affect the created tex file in any way. What can I do in order to get org to export the file as I intend? .org:               #+TITLE: export     #+OPTIONS: H:3          * section 1     ** subsection 1     ** subsection 2     *** subsubsection 1     * Section 2      results in .tex               % Created 2014-03-16 Sun 17:46     \documentclass{article}          \title{export}     \date{16 March 2014}          \begin{document}          \setcounter{tocdepth}{3}     \tableofcontents     \vspace*{1cm}          \section{Section 1}     \label{sec-1}          \begin{itemize}          \item subsection 1\\     \label{sec-1.1}          \item subsection 2\\     \label{sec-1.2}          \begin{itemize}          \item subsubsection 1\\     \label{sec-1.2.1}          \end{itemize} % ends low level     \end{itemize} % ends low level          \section{Section 2}     \label{sec-2}          \end{document}


title: Error with hrule

text: So I'm trying out this code from here, but I keep getting this image: ![enter image description here](http://i.stack.imgur.com/lOei8.png) What is happening? I copy-and-pasted the code.


title: \cmidrule with two multirows not behaving correctly?

text: Here is the code:               \begin{table}     \centering     \begin{tabular}{rrrrr}         \toprule         \multirow{2}{*}{b} & \multicolumn{2}{c}{QCDH} & Single & \multirow{2}{*}{$\frac{\pi_{q1}}{\pi_{s1}}$} \\         \cmidrule{2-4} \\      & $\pi_{q1}$ & $\pi_{q1}$ & $\pi_{s1}$ & \\     \midrule \\     0.1 & 0.0055 & 0.0018 & 0.0018 & 3.0555\\     0.5 & 0.1218 & 0.0830 & 0.0074 & 16.4594\\     2.5 & 0.7325 & 0.6771 & 0.3561 & 2.0570\\     \bottomrule     \end{tabular}     \caption{Pickup rates from QCDH and single SNP approach}     \end{table}      Here is the result: ![enter image description here](http://i.stack.imgur.com/xj584.png) As you can see, the first \cmidrule seems to take too much space.


title: how to make text be copied to another part of a document?

text: I have a paragraph in one part of the .tex file that I want to be duplicated in another part of the .tex file. I could do ctrl-c, ctrl-v... as easy as that, but then if I modify one place, I will have to do the same for the other. Is there a way to take a piece of text, in some part of the document, surround it by some reference marker, and then just use this reference marker elsewhere to duplicate the text? EDIT: I could just do                 \newcommand{\textA}{piece of text}      and then use "\textA" anywhere I want this text to appear. However, I want "\textA" to be defined in a certain place in the document (in the .tex file). That location appears after the first time I want to use this macro. Macros can be used only in places in the document after which they were defined, so I can't do that.


title: Problem defining a new command using lstinputlisting

text: I am trying to define a new command to easily insert SQL queries (from a file) on my document. I define it like that               \newcommand{\sqlfile}[2]{\lstinputlisting[language=SQL, caption={#1}, label=#2]{../sources/#2.sql}}      And use it like that               \sqlfile{Total number of users}{nb_users}      It works fine. I am able to reference the SQL file `\ref{...}` and the query is inserted correctly. Now I want to insert the filename in the query caption, so I just added the `#2` in the `caption` parameter.               \newcommand{\sqlfile}[2]{\lstinputlisting[language=SQL, caption={#1 #2}, label=#2]{../sources/#2.sql}}      But it does not work, and I cannot figure out why.               ! Missing $ inserted.     <inserted text>     $     l.1072 \sqlfile{Total number of users}{nb_users}     I've inserted a begin-math/end-math symbol since I think you left one out.      Proceed, with fingers crossed.      I tried adding braces and other, but that was not successful. Thanks


title: Changing default font to charter in memoir

text: I have been trying to change the default font from `lmodern` to `charter` in `memoir` class, but the output does not change. I used               \newcommand*{\memfontfamily}{bch}     \newcommand*{\memfontenc}{T1}     \newcommand*{\memfontpack}{charter}     \documentclass[a4paper,12pt,twoside,openany]{memoir}      as suggested in the manual (pg. 3 + 38). Any idea what is going wrong here?


title: Pgfplots two datatable in the same document

text: \documentclass[a4paper,12pt]{article}         \usepackage{pgfplots,pgfplotstable}        % Grafici         \pgfplotsset{/pgf/number format/use comma,compat=newest}                        %*********************************************************************************         % Impostazioni Pgfplots         %*********************************************************************************              \pgfplotstableread{         X Y         0.05 0.17         0.05 0.041         0.05 0.023         0.1 0.332         0.1 0.089         0.1 0.041         0.15 0.5         0.15 0.132         0.15 0.06         }\datatable              \pgfplotstablecreatecol[linear regression]         {regression}         {\datatable}              \xdef\slope{\pgfplotstableregressiona} %<-- might be handy occasionally         \xdef\intercept{\pgfplotstableregressionb}                        \begin{document}         \begin{figure}         \centering         \pgfplotsset{width=10cm}         \begin{tikzpicture}         \makeatletter \newcommand{\pgfplotsdrawaxis}{\pgfplots@draw@axis} \makeatother         \pgfplotsset{axis line on top/.style={          axis on top=false,          after end axis/.append code={             \pgfplotsset{axis line style=opaque,               ticklabel style=opaque,               tick style=opaque,               grid=none}             \pgfplotsdrawaxis}           }         }         \begin{axis}[/pgf/number format/fixed,         legend pos=outer north east,         grid=major,         xmin=0, xmax=0.2,         ymin=0, ymax=0.6,         point meta min={0},         point meta max={0.2},         yticklabel shift=2pt,         xticklabel shift=2pt,         legend pos=north west,         minor tick num=4,         axis line on top,         xticklabel style={text height=1.5ex},         xtick={0,0.05,...,0.3},         minor xtick={0,0.01,...,0.2},         extra x ticks={0,0.05,...,0.3},         extra x tick style={             xticklabel pos=right,             xticklabel style={text depth=0pt}         },         extra y ticks={0,0.1,...,0.7},         extra y tick style={             yticklabel pos=right         },         tick style={thin,black},         xlabel=\large $m$,         ylabel=\large $\Delta l$,         colorbar horizontal,         colorbar style={             /pgf/number format/fixed,             xticklabel shift=2pt,             xtick={0,0.05,...,0.3},             xticklabel style={text height=1.5ex}         },         colormap={new}{color(0cm)=(violet);color(1cm)=(blue);color(2cm)=(cyan);color(3cm)=(green);color(4cm)=(yellow);color(5cm)=(orange);color(6cm)=(red)},         after end axis/.append code={             \draw ({rel axis cs:0,0}-|{axis cs:0,0}) -- ({rel axis cs:0,1}-|{axis cs:0,0});         },         legend cell align=left]         \addplot [point meta=explicit,             scatter,             mark=*,             draw=none]             table[meta=X] {\datatable};              \addplot [mesh,point meta=x,domain=0.025:0.175,very thick,samples=1000] {\slope*x+\intercept};         \addlegendentry{%         $\pgfmathprintnumber{\pgfplotstableregressiona} \cdot x         \pgfmathprintnumber[print sign]{\pgfplotstableregressionb}$}         \end{axis}         \end{tikzpicture}         \end{figure}         \end{document}      hi i would to make two plot like this with two different tables of data in the same document how can i do? Thanks


title: Appendix Figure Placement

text: Sorry for the long message, I'm pretty new to LaTeX, only starting a few days ago to put my thesis together that's due in on Friday. I managed to get most things together but I'm having trouble with my floats for the appendix. My appendix is just a number of graphs. Initially, I tried to output titles for the graph, and then the graph two to a page. This code worked well until about maybe the third page, when one graph would be placed on its own, then it would return to two graphs per page again before randomly placing one float per page. This is an example of the start of my code:               \textbf{Abutment Fragility Curves}          \textit{As-Built Pristine Integral Bridge}          \begin{figure}[!h]       \begin{center}       \leavevmode       \includegraphics[width=5in, height=3in]{Model1Active0yrs.png}       \caption[]{As-Built Pristine Active Abutment Fragility Curve}       \label{figModel1Active0yrs}       \end{center}     \end{figure}          \begin{figure}[!h]       \begin{center}       \leavevmode       \includegraphics[width=5in, height=3in]{Model1Passive0yrs.png}       \caption[]{As-Built Pristine Passive Abutment Fragility Curve}       \label{figModel1Passive0yrs}       \end{center}     \end{figure}     \clearpage          \begin{figure}[!h]       \begin{center}       \leavevmode       \includegraphics[width=5in, height=3in]{Model1Transverse0yrs.png}       \caption[]{As-Built Pristine Transverse Abutment Fragility Curve}       \label{figModel1Transverse0yrs}       \end{center}     \end{figure}          \textit{As-Built 50 Year Old Integral Bridge}          \begin{figure}[!h]       \begin{center}       \leavevmode       \includegraphics[width=5in, height=3in]{Model1Active50yrs.png}       \caption[]{As-Built 50 Year Active Abutment Fragility Curve}       \label{figModel1Active50yrs}       \end{center}     \end{figure}     \clearpage      To try to rectify this, I began using sub float. With the first few pages, Using sub float I need to get three graphs on the same page as these are related and would require the same sub caption relationship. However, despite scaling the sub captions are coming out on the bottom left of the graph with the (a) positioned below the graph and then shoving the figure out to the right rather than centring above the caption               \begin{figure}[]       \centering       \subfloat[]{Active Abutment}{\label{figModel1}\includegraphics[scale=0.4]{Model1.png}}       \captionsetup{position=bottom}       \centering       \subfloat[]{Passive Abutment}{\label{figModel2}\includegraphics[scale=0.4]{Model2.png}}       \captionsetup{position=bottom}       \centering       \subfloat[]{Transverse Abutment}{\label{figModel3}\includegraphics[scale=0.4]{Model3.png}}       \captionsetup{position=bottom}       \caption[]{Pristine Integral Bridge Abutment Fragility Curves}     \end{figure}     \clearpage      I need support in how to control a number of figures in an appendix!


title: LuaTeX stumbles over special characters in path names, is this a bug?

text: **This bug in MiKTeX is fixed as of 29. March 2012.** I looked briefly at the LuaTeX documenation but could not find any information whether LuaTeX has a problem with special characters in path names. Is this a known bug? My minimal example looks like this:               \documentclass[a4paper,12pt]{article}     \usepackage{graphicx}     \begin{document}          test test test test           \begin{figure}         \includegraphics{test2.pdf}     \end{figure}          \end{document}      The document compiles nicely with pdfTeX (used to create test2.pdf) but when I run the same file with LuaTeX I get the following error message: > !LuaTeX error (file test2.pdf): PDF inclusion: could not stat() file > 'C:/Temp/U mlaut├ä/test2.pdf' The correct path is C:\temp\UmlautÄ and it seems as if LuaTeX (from current MikTeX 2.9) can not handle this correctly. Is this a bug? How can I work around this if my profile path contains an umlaut? Edit: I tried `\usepackage[utf8]{luainputenc}` and `\usepackage[encoding,filenameencoding=utf8]{grffile}`, both did not change the situation (the source file is UTF8 encoded).


title: chicago.sty and hyperref: hyperlink formatting

text: `chicago.sty` offers a number of citation commands which may output a link to the bibliography if `hyperref` is used. As long as no page number is given, hyperlink formatting is as expected (cf. last column). However, if a page number is to be displayed, `citeN` and `shortciteN` do include it in the hyperlink, whereas the other commands don't. How could these commands be redefined to let their optional parameter always be formatted as a hyperlink?* ![enter image description here](http://i.stack.imgur.com/nEX20.png)               \documentclass{article}     \usepackage{chicago}     \usepackage{filecontents}     \usepackage[colorlinks=true,citecolor=red]{hyperref}          \begin{filecontents*}{references.bib}     @book{ref,       author    = {Donald E. Knuth},       title     = {The TeXbook},       publisher = {Addison-Wesley},       year      = {1986}     }     \end{filecontents*}          \begin{document}          \begin{tabular}{llll}                     & cite          & \cite[p.\,1]{ref}         & \cite{ref}        \\                     & citeNP        & \citeNP[p.\,1]{ref}       & \citeNP{ref}      \\                     & citeA         & \citeA[p.\,1]{ref}        & \citeA{ref}       \\                       & citeANP       & \citeANP[p.\,1]{ref}      & \citeANP{ref}     \\       $\rightarrow$   & citeN         & \citeN[p.\,1]{ref}        & \citeN{ref}       \\                      & shortcite     & \shortcite[p.\,1]{ref}    & \shortcite{ref}   \\                        & shortciteNP   & \shortciteNP[p.\,1]{ref}  & \shortciteNP{ref} \\                        & shortciteA    & \shortciteA[p.\,1]{ref}   & \shortciteA{ref}  \\                        & shortciteANP  & \shortciteANP[p.\,1]{ref} & \shortciteANP{ref}\\        $\rightarrow$   & shortciteN    & \shortciteN[p.\,1]{ref}   & \shortciteN{ref}  \\                        & citeyear      & \citeyear[p.\,1]{ref}     & \citeyear{ref}    \\                     & citeyearNP    & \citeyearNP[p.\,1]{ref}   & \citeyearNP{ref}  \\                   \end{tabular}          \bibliographystyle{chicago}     \bibliography{references}     \end{document}      *Changing `citeN` and `shortciteN` to _not_ apply hyperlink formatting to their optional parameter is not an option. It would lead to the rather unpleasant result that while the parentheses _are_ hyperlinks (which they should be, for the sake of consistency with each command's version without optional page parameter), something inside the parentheses, namely the optional parameter, is not a hyperlink.


title: placing caption on the top  right or top left -

text: I would like to have my captions as shown in the image below. I want them to appear on the TOP left of the image. I tried SideCap, but it puts them at the bottom of image. ![enter image description here](http://i.stack.imgur.com/cFXNS.png)


title: Adobe reader tells me error when opening my PDF

text: I'm transfering Master thesis from Word to LaTex (and I'm not expert in this). I have to use template, which we have from school. I pasted it here on pastebin.com. What was my problem: When I create PDF with this template, it works fine somewhere. But Adobe reader had some problems. ~~I'm using TexWorks (I installed it with MikTex) and pdfLatex to create pdf. I see everything fine in TexWorks viewer. Also Google Chrome displayes everything OK. But when I open it in Adobe Reader X, title page is blank and when I scroll to first real page (with chapter 1), it tells me, that there is problem on page (content, list of tables and list of images are fine). What I have found: When I comment stuff around insertOutline, it's better (it displayes more text), but there is still no title page and I still get the message from Adobe. ~~ Doesn't anybody of you have any idea what could be the problem? EDIT: According to comments, I have found, that problem was in outline and hyperlinks (I have updated pastebin code). First blank page was blank because of this line: `\usepackage[table]{xcolor}`. But I dont't understant code about outline and hyperlinks. Could someone please tell me, what it means, so I can try to fix it by other way than in my template?               %% external hyperlinks     \def\@@ignorewhs#1{%       \bgroup \catcode`\ =9 \catcode`\~=12 \catcode`\_=12 \catcode`\@=12       #1}          \def\mail{\@@ignorewhs{\s@mail}}     \def\s@mail#1{\@pdfuri{\lowercase{\tt\char60#1\char62}}{mailto:#1}\egroup}          \def\url{\@@ignorewhs{\s@url}}     \def\s@url#1{\@pdfuri{\lowercase{\tt#1}}{#1}\egroup}          \def\link#1{\gdef\@linktxt{#1}\@@ignorewhs{\s@link}}     \def\s@link#1{\@pdfuri{\@linktxt}{#1}\egroup}          %% internal hyperlinks     \def\emphref#1{\gdef\@emphreftxt{#1}\@@ignorewhs{\s@emphref}}     \def\s@emphref#1{\@pdflink{\@emphreftxt}{lnk#1}\egroup}          \def\hyplabel#1{\@pdfdest{lnk#1}}          \def\emphref#1{\gdef\@emphreftxt{#1}\@@ignorewhs{\s@emphref}}     \def\s@emphref#1{\@pdflink{\@emphreftxt}{lnk#1}\egroup}          %% initialize outlines     \def\insertoutline#1#2{%       \@inspdf{\special{pdf:outline #1            << /Title (#2) /Dest [ @thispage /FitH @ypos ] >>}}}          \def\nextoutline#1{\gdef\@@nextoutlinelabel{#1}}     \let\@oldsect=\@sect     \def\@sect#1#2#3#4#5#6[#7]#8{%       \ifx\@@nextoutlinelabel\undefined\insertoutline{#2}{#7}%       \else\insertoutline{#2}{\@@nextoutlinelabel}%       \let\@@nextoutlinelabel=\undefined\fi%       \@oldsect{#1}{#2}{#3}{#4}{#5}{#6}[#7]{#8}}          %% insert outlines manually     \def\outline{\insertoutline{1}}     \def\suboutline{\insertoutline{2}}     \def\subsuboutline{\insertoutline{3}}     \def\subsubsuboutline{\insertoutline{4}}      I have also modified my latex code, which uses this style:               %%% Deklarace hlavičky dokumentu, použijte písmo velikosti 12 bodů.     \documentclass[12pt]{article}          \usepackage[tables,figures]{updiplom}     \usepackage[utf8]{inputenc}          %%% Moje package navic     \usepackage{hyperref}               \title{Název diplomové práce}     \author{Nějaký Pán}     \year{2012}     \date{13. březen 2012}          \docinfo{Nejakjy Pan}{Nazev diplomove prace}          %%% Vytvoření anotace. Pouze jeden odstavec!     \annotation{     Anotace      }          %%% Nepovinný text poděkování. Pouze jeden odstavec!     \thanks{%     Poděkování vedoucímu práce, rodině apod. (nepovinné)}          \begin{document}          %%% Vytvoření úvodních stránek, obsahu a seznamu tabulek a obrázků.     \maketitle     \newpage               %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % 1. chapter     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \newpage     \section{Programátorská dokumentace}          Již na začátku diplomové práce bylo přesně definováno, jaký druh aplikace má vzniknout. Mělo se jednat o webovou aplikaci a dle toho také byl zvolen přístup k vývoji, jak už z pohledu použitých programovacích jazyků, tak z~pohledu návrhu architektury aplikace. Při vývoji byly respektovány zažité normy a idiomy.               \end{document}      It's no more giving me error (I have commented that stuff about hyperlinks and outlines), but Adobe reader still doesn't display title page. If you want to try it, please create some small image named uplogo and put it to latex code folder.


title: How can I redistribute floats towards the top of the page?

text: I'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things like               \let\oldfoot\footnote \renewcommand{\footnote}[1]{\oldfoot{#1\medskip{}}}     \let\oldcap\caption \renewcommand{\caption}[1]{\oldcap{#1\medskip{}}}      but still get floats running off the bottom of the page, even though there's plenty of marginal space and I've tried things like               \renewcommand{\topfraction}{0.9}         \renewcommand{\bottomfraction}{0.2}      \setcounter{topnumber}{4}     \setcounter{bottomnumber}{1}     \setcounter{totalnumber}{5}      Are there general, document-wide, settings or redefinitions I can use to redistribute floats "upward" in the margin, into the abundant free space there? * * * Any document with the structure               \documentclass[]{tufte-handout}        \title{This is just the title}        \begin{document}     %Enough text to put a "here" sidetone near the bottom of the page     \footnote{Some text that gets close to the bottom of the page.}     %A bit of text     \footnote{Another good-sized chunk of text}     \end{document}      will do result in marginal material that flows off the page, e.g.:               \documentclass[]{tufte-handout}        \title{This is just the title}        \begin{document}     I'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things like. I'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things likeI'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things likeI'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things like\footnote{I'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things like}     I'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things likeI'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things likeI'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things likeI'm using Tufte classes and am trying to gain some general cotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things likeI'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional\footnote{I'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things like} collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things like\footnote{I'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things like}     I'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things likeI'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisio         More body text.     \end{document}      And the following is typical of pages that produce collisions between marginal material:               \documentclass[]{tufte-handout}     \usepackage{amsmath}     \begin{document}     Some text in front of some math:%     \footnote{The team also relied on images that amateur astronomers had been gathering of a large, transient storm called the South Equatorial Disturbance. This visual record dates back to 1999, when members of the community spotted the most recent recurrence of the storm just south of Jupiter's equator. Analysis of these images revealed the dynamics of this storm and its impact on the chevrons. The team now thinks this storm, together with the Great Red Spot, accounts for many of the differences noted between the jet streams and Rossby waves on the two sides of Jupiter's equator.%     }     \begin{align}     a & \approx0\tag{B1}\label{D:B1}\\     b & \approx0\tag{B2}\label{D:B2}\\     c & \approx1\tag{B3}\label{D:B3}     \end{align}     Some additional text %     \footnote{Some other text that should not be colliding with the text above.%     }which allows him to take The team also relied on images that amateur astronomers had been gathering of a large, transient storm called the South Equatorial Disturbance. This visual record dates back to 1999, when members of the community spotted the most recent recurrence of the storm just south of Jupiter's equator. Analysis of these images revealed the dynamics of this storm and its impact on the chevrons. The team now thinks this storm, together with the Great Red Spot, accounts for many of the differences noted between the jet streams and Rossby waves on the two sides of Jupiter's equator.Like Earth, Jupiter has several fast-moving jet streams that circle the globe. Earth's strongest and best known jet streams are those near the north and south poles; as these winds blow west to east, they take the scenic route, wandering north and south. What sets these jet streams on their meandering paths -- and sometimes makes them blast Florida and other warm places with frigid air -- are their encounters with slow-moving waves in Earth's atmosphere, called Rossby waves.Crucial to the study was the complementary information that the team was able to retrieve from the detailed spacecraft images and the more complete visual record provided by amateur astronomers. The team also relied on images that amateur astronomers had been gathering of a large, transient storm called the South Equatorial Disturbance. This visual record dates back to 1999, when members of the community spotted the most recent recurrence of the storm just south of Jupiter's equator. Analysis of these images revealed the dynamics of this storm and its impact on the chevrons. The team now thinks this storm, together with the Great Red Spot, accounts for many of the differences noted between the jet streams and Rossby waves on the two sides of Jupiter's equator.           For example, the high resolution of the spacecraft images made it possible to establish the top speed of the jet stream's wind, and then the amateur astronomers involved in the study looked through the ground-based images to find variations in the wind speed.%     \footnote{I will elaborate on some consequences of this particular scenario later.%     } For all of these reasons we can no longer take the ``observer density'' of an average simulation,      \[     \frac{a}{b}     \]     More text here that says nothing but is just to fill space:%     \footnote{An additional note.%     }     \[     \frac{a}{b}     \]          \end{document}


title: Creating playing cards using TikZ

text: I'm creating a card game, specifically a computer science Fluxx variant, and want to generate the cards through *TeX. They should look like this: ![example of Fluxx cards](http://i.stack.imgur.com/Unaq3.jpg) In some of them I want to put some graphics or formulas. I tried with TikZ but had no luck (but I'm just a newbie). Can you help me? (I plan to release it under a CC license.) UPDATE: This is what I have:               \documentclass{minimal}     \usepackage[a4paper,margin=1cm]{geometry}     \usepackage{tikz}     \usepackage{multicol}     \usepackage{amsthm,amsmath,amssymb}     \usepackage[protrusion=true,expansion=true]{microtype}     \usetikzlibrary{positioning,shapes,shadows,arrows,backgrounds,fit}     \usepackage[utf8]{inputenc}     \begin{document}     \tikzstyle{textstyle}=[rectangle, text width=3.5cm, text badly ragged, scale=0.8]     \begin{multicols}{3}     \begin{center}       \begin{tikzpicture}[background rectangle/.style = {draw=black, fill=white,             rounded corners}, show background rectangle, node distance=0.3cm]         \node (side) [textstyle, fill=red, rotate=90, text width=4cm, scale=1.4, text centered] {%             \begin{tabular}{r}                 TIME             \end{tabular}         };         \node (kind) [textstyle, right=of side, scale=1.5] {\textbf{KEEPER}};         \node (desckind) [textstyle, below=of kind] {             When you play this card, bla bla bla.         };         \node (title) [textstyle, below=of desckind, scale=1.3] {Time};         \node (separator) [thick, fill=black, below=of title, text width=3.5cm] {};         \node (description) [textstyle, below=of separator] {             The player bla bla bla bla             \[ H \Psi = \nabla \Psi \]             \[ J \Phi = \nabla \Phi \]             and then bla bla bla.         };       \end{tikzpicture}     \end{center}     \end{multicols}     \end{document}      ![a playing card](http://i.stack.imgur.com/tDSyS.png)


title: RStudio, Sweave and synctex

text: For a few days now I was wondering why RStudio stopped showing the "Sync PDF view to editor location". I still don't know for sure, but since my .synctex.gz file is apparently "(busy)" I assume there is a connection.   I tried removing the files that are typically created upon compiling a Sweave document in the hopes that it would work then, but the new file is again called "myfile.synctex.gz(busy)". In addition, there was a "This file is currently not available for use on this computer" error but this has vanished now, so I can at least open and use my PDF again.   I've seen a similar question here, but it was never answered and since I can't comment yet, I could only ask again. Does anyone know how and why it happens, that a file can be busy according to its extension? Would it be enough to wait longer than the 10 minutes I already tried? By the way, I'm compiling with pdfLaTeX, my PDF previewer is SumatraPDF and I've checked the "Always enable Rnw concordance" check box in RStudio. **Update!**   I tried to compile a basic .Rnw file in RStudio to see if the missing synctex button is gone entirely, but it showed up fine with the minimal example. On the other hand, the .Rnw file I'm compiling without the option to use synctex afterwards is located on a server and when I compile it on another computer (from the same folder), the synctex button will also show up! Amazing.   Even better: when I run it again on my laptop now, _it also works_! No busy .synctex.gz file any more. **Update 2**   Once I had left the network and was only working with offline files, it stopped working again. I'm blaming the Windows offline file system now.


title: Page count in LaTeX vs Word

text: My term paper has fairly strict formatting guidelines - double-spaced & 12pt font. I am currently on page 7 (when previewed in LaTeX). However, when I copy and paste into MS Word, I've hit the 10-page limit already. Any hints on how to get these two numbers to agree? I want to use LaTeX for BibTex integration, but I don't want to hand in a 7 page paper with the proviso that "it's 10 pages in Word, I swear" or have a paper that's actually far in excess of the page cap when viewed in Word. Here's the relevant bits of my LaTeX document:               \documentclass[12pt]{article}       \usepackage[tmargin=1in,bmargin=1in,lmargin=1.25in,rmargin=1.25in]{geometry}          \usepackage{setspace}       \doublespacing


title: Why is \txt element of \xymatrix moved downwards?

text: I wonder why is the textual "A" in `\xymatrix{A \ar[r] & \txt{A}}` moved downwards. All I want is to have textual elements in `xymatrix` with possibility of line breaks inside the element. I thought `\txt` is for this but the positioning seems weird to me. _EDIT_ : Thank you for answers. I have found following solution: Just put there `*\txt{}` instead of `\txt{}`. Actually then there is no spacing around the text, so `*+\txt{}` looks better. I just wonder if this is standard way to do it. It seems to me that there should be a standard way to do it, since it looks like standard demand to have textual multiline entries, but both your answers look like workarounds.


title: Regex search replace multiple characters (escape) in Word/Texmaker for Latex import

text: I am transforming Word documents to Latex and want to escape the special characters in 1-click preferably in word with regex search / replace, alternatively within Texmaker/Latex with a macro, worst with notepad++ with regex.               & % $ # _ { } ~ ^ \      Escape all with \ except the last 3 which require               \textasciitilde     \textasciicircum     \textbackslash      Is there a word solution, yes word accepts regex (i ask because this task will be done by non-tech users)? Can this be done in Texmaker by macro? ?Why is Latex so static?


title: Can't place figures side by side

text: I'm trying to place two TiKz pictures side by side in a two-column document (IEEEtrans style). I've looked at various solutions, but each one that claims to place figures side by side only manages to place the plots one above the other: ![enter image description here](http://i.stack.imgur.com/qxpur.png) Currently I'm trying to use the `subfigure` environment:               \documentclass[letterpaper, 10 pt, conference]{ieeeconf}           \IEEEoverridecommandlockouts                                \overrideIEEEmargins                \usepackage{graphicx}      \usepackage{amssymb}     \usepackage{algorithm}     \usepackage{algorithmic}     \newcommand{\tsc}[1]{\textsuperscript{#1}}     \usepackage[utf8]{inputenc}     \usepackage{amsmath}     \usepackage{subcaption}      \usepackage{pgfplots}     \usepackage{pgfplotstable}          \usepgfplotslibrary{groupplots}          \usetikzlibrary{calc,trees,positioning,arrows,chains,shapes.geometric,%         decorations.pathreplacing,decorations.pathmorphing,shapes,%         matrix,shapes.symbols}          \pgfplotsset{     tick label style={font=\tiny}, %axis numbers font size     label style={font=\small}, %axis labels font size     legend style={font=\tiny}     }               \begin{figure}         \centering         \begin{subfigure}[t]{0.48\textwidth}             \centering             %\input{figs/roc_curve.tikz}             \resizebox{0.5\linewidth}{!}{\input{figs/roc.tikz}}               \caption{Caption A}             \label{fig:A}         \end{subfigure}         \begin{subfigure}[b]{0.48\textwidth}             \centering             %\input{figs/roc_curve.tikz}             \resizebox{0.5\linewidth}{!}{\input{figs/roc.tikz}}               \caption{Caption B}             \label{fig:B}         \end{subfigure}             \caption{ROC curve of failure detection;}         \label{fig:roc_curve}     \end{figure}          (...)          \end{document}      What exactly is forcing the plots to become only vertically aligned?


title: two psframe at same height using pstricks

text: I'm trying to create two psframes at same height using the following code               \documentclass[a4paper]{article}     \usepackage{pstricks}     \begin{document}     \psframe(-3,-1)(5.5,3) %frame1     \psframe(5.5,-1)(14,3) %frame2     \end{document}       given that Y coordinates are same still I can't get them at same height. How can this be done?


title: Prohibiting line break at specific point of url while using \url command

text: I have a `\url{some.edu/page}` that breaks just before `.edu` I would like to have it break at the `/` at worst, or not at all. How can I do that?


title: How to raise a character in the whole document?

text: In my document (due to combind both Chinese and English), all (, ), [, ], etc., are all too low. Is it posibble to raise all (, ), [, ], or any characters user defines to desire height? (for ex. If I want to raise all 'z' for 3pt?) Thank you so much!


title: Why \allowbreak is not working?

text: So, here's the code I have:               \usepackage{amsthm}          \begin{theorem}     ...could be now considered as an algebraic structure $DB_E =     \left\langle \mathbb{S},\allowbreak \mathbb{E},\allowbreak     f,\allowbreak \mathbb{V},\allowbreak \mathbb{R},\allowbreak     \mathbb{C},\allowbreak Op_a,\allowbreak Op_c,\allowbreak     Op_m \right\rangle$.     \end{theorem}      and here is the result (grey area denotes the edge of the page): ![enter image description here](http://i.stack.imgur.com/oJCCV.png) Obviously, `\allowbreak` does not do anything. Why is it?


title: USPS Postnet barcodes

text: After searching on-and-off for several weeks I haven't found an answer to this. Is there a LaTeX package to generate USPS zip+4 barcodes on an envelope?


title: Bibtex using different font than document

text: I am writing a LaTeX file currently which is required to be in Times New Roman, so in the prelude I have:               \documentclass[a4paper,12pt]{article}     \usepackage{times}     \usepackage{natbib}      The document comes out in the font just fine, but when I go to create the References section via BibTeX,               \bibliographystyle{apa-good}     \bibliography{neurons}      it appears as though the font is back to the default LaTeX font. Does anyone know how to resolve this? If it helps, I am using Kile and KBibTeX.


title: Vertically align individual cells in a table

text: I am wanting the ability to vertically align any cell within a table. This appears possible but only on a per column or row basis. At the moment I can horizontally align the contents of individual cells with the help of the `\raggedleft` and `\centering` commands. However, `\multicolumn` applies vertical alignment for the whole row and the `longtabu` environment can only specify the alignment type per column. The following is an example of the table I want to create where both horizontal and vertical alignments need to be set for each cell instead of per row or column:               \documentclass[11pt,a4paper]{article}     \usepackage{longtable}           \usepackage{tabu}     \usepackage{lipsum}     \usepackage{multirow}          \newcolumntype{M}{m{\dimexpr 1\tabucolX+1\tabcolsep+\arrayrulewidth\relax}}     \newcolumntype{P}{p{\dimexpr 1\tabucolX+1\tabcolsep+\arrayrulewidth\relax}}     \newcolumntype{B}{b{\dimexpr 1\tabucolX+1\tabcolsep+\arrayrulewidth\relax}}          \newcolumntype{H}{>{\begin{minipage}[b]{\hsize}}B<{\end{minipage}}}          \begin{document}          \begin{longtabu} to 150mm [l] {|X[l]|X[l]|X[l]|}     \hline      \multicolumn{1}{|P|}{ \lipsum[1]} & \multicolumn{1}{H|}{\centering H: Center, V:Center} & \multicolumn{1}{B|}{\raggedleft \multirow{1}{*}[-2\baselineskip]{H:Right, V:Bottom}} \tabularnewline     \hline     \multicolumn{1}{|P|}{\lipsum[1]} & \multicolumn{1}{P|}{H: Left, V:Top} & \multicolumn{1}{M|}{\centering H:Center, V:Center} \tabularnewline     \hline     \multicolumn{1}{|P|}{\lipsum[1]} & \multicolumn{1}{M|}{\raggedleft H: Right, V:Center} & \multicolumn{1}{B|}{H:Left, V:Bottom} \tabularnewline     \hline      \tabuphantomline      \end{longtabu}          \end{document}      **Update:** Attempting the solutions presented in "Move tabular entry to bottom of row" won't work. The first solution I believe simply adjusts the entire column by creating a new column type:               \newcolumntype{B}{>{\begin{minipage}[b]{\hsize}}X<{\end{minipage}}}      This doesn't help my problem where I need the vertical alignment applied to individual cells, not a whole column. Applying this column type to `\multicolumn` doesn't appear to work. The second solution places a `\baselineskip` into the optional parameter of `\multirow` which works initially but seems to become vertically centred as soon as the cell becomes a certain height. I have updated my example above to show how it breaks. Thanks