Most Popular

1500 questions
95
votes
4 answers

How to increase the horizontal distance between nodes?

I've got this Tikz picture and I'd like to increase the horizontal distance between the nodes while keeping the vertical distance unchanged. I know how to do it by placing the nodes manually using coordinates, but I'd rather not do it if it can be…
Ernest A
  • 2,773
95
votes
4 answers

set a maximum width and height for an image

I would like to define a maximum height and a maximum width for an image at same time. I suppose there must be a package to do this, but actually I'm unable to find it...
xarmengol
  • 1,147
  • 1
  • 10
  • 8
95
votes
20 answers

As an expert, can you always use TeX for (nearly) any kind of document?

I am just beginning to learn TeX. Coming from web-development, I find separating content from style very sensible, and I like the logic behind it. To me it looks that having control over formatting is very convenient and it makes TeX superior to…
user
  • 3,533
95
votes
3 answers

How to include a PDF image into a PDFLaTeX document

I am generating a PDF file using pdflatex and need to include another PDF file. The reason is that I have a graphMl file which I exported from yEd graph editor to a PDF file, named sample.pdf. The TeX code to be compiled with pdflatex is given…
pavani
  • 2,973
95
votes
3 answers

Formatting section titles

Forgive the stupid simplicity of this question, and please feel free to refer me to an older answer. I'm not quite familiar enough with LaTeX terminology to have found it. All I want to do is set a different default format for my section titles.…
95
votes
1 answer

How to make clickable links and cross-references in pdfs produced by LaTeX?

How can I make things link url references, my index, table of contents, and cross references clickable links in documents produced by LaTeX? I generally use pdflatex to produce my documents.
vanden
  • 30,891
  • 23
  • 67
  • 87
95
votes
2 answers

Function and usage of \leavevmode

I am beginner of LaTeX. From many examples I found, I notice that it's very common to use command \leavevmode. I can't find any information about this command. Could anyone tell me what's the function of it and how to use it?
Jason Xu
  • 1,783
95
votes
5 answers

Everyday LaTeX and workflow?

I'm a LaTeX beginner and am wondering what a typical workflow looks like when writing a (longish) document. The draw for me is the ability to separate content and presentation, but it still seems like you need to know enough markup for sectioning…
95
votes
2 answers

Difference between \textrm{} and \mathrm{}

Can you explain me what is the difference between \textrm{} and \mathrm{} when they are used in math mode. In what context one is preferred over the other?
Marco
  • 4,435
95
votes
4 answers

How can I visualize boxes?

This question led to a new package: lua-visual-debug Some of you may know the Web Developer Toolbar for Firefox that can outline the block level elements of a page like this: Is there a way to do something similar with TeX boxes for a complete…
h0b0
  • 5,437
  • 7
  • 35
  • 34
95
votes
4 answers

Spacing before and after section titles

I know this subject has been mentioned before, but I'm still having a problem in creating a space under a section title. I used the titlesec package and then tried using the command \titlespacing{\section}... This is my code. Can anybody…
abdu
  • 1,849
95
votes
3 answers

Best practice for hyperref link colours?

I'm using the hyperref package with the option colorlinks=true. However, I'm not happy with the default link colours: for instance, citation links appear in a flamboyantly bright green that hurts my eyes, and presumably, will hurt my readers'. I…
jub0bs
  • 58,916
94
votes
1 answer

Different column widths using multicol

Is it possible to specify different column widths in a multicol environment? For example, in a two column layout, can the left column be set to twice the width of the right column?
Valentino Ru
  • 1,767
94
votes
2 answers

pgf-Tikz QR code generator

This question led to a new package: qrcode I am looking for a Tikz QR code generator. I am aware of pst-barcode as well as several "local" programs, a luatex solution and web services to do this. Nevertheless, if at all possible, I would much…
Max
  • 5,702
94
votes
6 answers

Which document class is being used?

Is there a way to programmatically determine which document class is in effect? I'd like to be able to write conditional macros that behave differently depending on which document class is currently being used.
Scott Morrison
  • 7,553
  • 6
  • 33
  • 32