tex

LaTeX: disable or turn off hyperlinking for table of contents?

I want a table of contents, but I don't want each line to be a clickable hyperlink. How do I do this? Details: I am using the \anothertoc command from the shorttoc package to "import" the TOC from another document. Works fine, except that all the links for the imported TOC are broken (obviously)... so, I want to de-linkify them. Not...

How to implement MapThread with basic list mapping?

Mathematica has a function MapThread that behaves like this: MapThread[ f , { {a,b,c} , {d,e,f} } ] -> { f[a,d] , f[b,e] , f[c,f] } I'd like to implement this in TeX, which has very primitive programming facilities. I've basic facilities for iterating over lists, but no logical indexing into them. Given this restriction, is there an a...

Latex minipage to align groups of text

I am trying to get two minipage sections to show up next to each other. They always show up one underneath the other currently below is an example of my .tex Example: \begin{minipage}[b]{1in} Hello World akdjfasljdfkjasjdfjsadkflkjksadflkaskjdfsadlflkjsafdalkjsfd \end{minipage} \begin{minipage}[b]{1in} Hello World akdjfasljdfkjasjdfjs...

Any XML based alternative of TEX?

When I started to know about TEX, I found it a descrptive language. I think that any XML based alternative would do the job better. And everybody would not have the hassle of learning TEX. I found it quite time consuming. Does anyone know any XML based alternative like this? And if there is compatibility between that thing and XML (havin...

latex escape chars

Hi, I want to prepare a text for the use in a LaTeX document. I wrote a SQL Function which does a lot of REPLACE. For example "_" -> "_" and so on. But there are so many special chars and sometimes I get errors... Does anyone know a sql-function or a java package for escaping text to LaTeX? greatings Uwe ...

Create own BibTeX style or customize existing one?

I'm looking for a way to define new BibTeX style or to customize existing one. I have two reasons for this: I want the author names/editors to be italic (for articles in book, book, magazines, encyclopedia etc) I want numbers at the beginning Example: Secondname, B. Book title. Place Year. Site number. Article author, A. Article ti...

LaTeX books VS online tutorials?

What were you missing from the online tutorials and manuals, that you found well explained in LaTeX books? Any LaTeX book, but I'm mainly referring to The LaTeX Companion by Mittlebach, and the A Guide to LaTeX by Kopka. I'm working on a book project in LaTeX and the question came up why don't I buy these much reputed books. Until now I...

Multicol and a floating box at the top of page, with text wrapping around it

I'm writing an article for a magazine. I'm trying to insert a (floating) 2-column box at the upper right corner of a 3-column document, with the text wrapping around it nicely andn the columns being aligned. I'm making the box using the tikz package so I can have a box with rounded edges and a background color. I was trying to do the wra...

How to implement a service that can output formula with tex parameters?

Is there some open source project I can refer to? I'm using PHP. Anyone knows? ...

What is the correct way to center \tikzpicture?

What is the correct way to cause a \tikzpicture to be centered, using LaTeX? By default it appears to be aligned with the left margin. ...

TeX edef macro blues

I spent some time trying to write a 'helper' macro to test a parameter for a new value, else use the existing value -- default values exist for all parameter positions. I wanted to be able to write: \foo{left}{nil}{}{20pt} so that the second parameter would used its current value but the third value would be the value empty string. I...

Do you use XeTeX or pdfTeX?

As far as I understand it (a few days of research here and there), there are two major TeX engines: pdfTeX and XeTeX. pdfTeX is the "standard", having been around since the early 1990s, renders straight to PDF, and improves on some minor formatting issues with original TeX. XeTeX, on the other hand, also outputs PDF, can use any system ...

How to write below/above the text in LaTeX?

I want to have text above text (not superscript - x^2) but a \overbrace and text above it. (same for below the text) thanks ...

Open Source LaTeX environment for educational books?

Fully aware of the LaTeX features to define new environment allowing me to do about anything, I was wondering if there are Open Source packages that allows me to do book branding by predefining environments for examples, excursions, listings, question sections, etc. For example, have an example environment with a blue-ish background, sec...

What's the starting point to write functionality for LaTeX?

I'm new to it but know it can't handle something special I need. I want to develop functionality for LaTeX. Problem: There's something called just TeX. Then there's LaTeX. And then there's KOMA-Script. So: Which of these three is actually the "underlying engine" that drives all this stuff? ...

Latex - extract substring/ignore characters

I have the following problem. I have defined a macro, \func as follows \newcommand{\func}[1]{% do something with #1 X #1 Y } I now want to define another macro \newcommand{\MyFunc}[1]{ % parse #1 and if it contains "\func{....}", ignore all except this part % otherwise ignore #1 } Can someone tell me how to implement \MyFunc ...

LaTex - how to create boxes with fixed heights and widths, with enclosed text that is vertically and horizontally aligned?

This is for creating flashcards in LaTeX. My printer doesn't support duplex printing - which packages like flashcards and flacards seem to require - so I am trying to create a two-column arrangement as follows on each page: [Col1: Front side of the card] [Col2: Back side of the card] Each row would correspond to a single flashcard. The...

LaTeX Page Size --- how do I produce a page that is "just big enough"?

Hi, I was learning about using the command line version of latex today, and I was experimenting with outputting .tex to .dvi, and then .dvi to .png. The problem is, I have a simple .tex document which contains some math. The goal is to eventually produce a png form of the equation. But when I run: $ latex -output-format=dvi test.tex $...

Making Latex typeset given text on two facing pages

How do I encourage/make Latex typeset some portion of text so that it will all appear on a consecutive even-page, odd-page pair of pages? With trial and error, \nopagebreak can be coaxed into doing this, but is there a strategy that Just Works? Something like a samepage environment would be ideal, but one that: Will force a pagebreak...

What is the correct way to caption a `tikzpicture`?

I have some trees drawn with tikz and I'd like to have some text associated with them. I can use \caption within figure, but not tikzpicture. UPDATE: Thanks for your advice. figure seems to put my first picture at the bottom of the page, and the second one on the second page. I would like these to be close to the paragraph like the tikz...