Most Popular

1500 questions
67
votes
5 answers

How do you create pull quotes?

Does anyone know a package for pull quotes? Failing that, is anyone interested in writing a command to create one? I'm thinking of something that would have optional and configurable separators above and below (e.g., lines or large quotation…
Emre
  • 6,337
67
votes
4 answers

What does \smash do, and where is it documented?

I see several users in this forum talk about \smash. It is apparently defined in base TeX. What does \smash do? For future reference, is there online documentation where I could find this?
vy32
  • 4,780
67
votes
4 answers

Bold math: Automatic choice between \mathbf and \boldsymbol for Latin and Greek symbols?

This is a follow-up to this question. Suppose you want to denote vectors by upright bold letters; then \mathbf{u} works fine, except that if it's a Greek letter you have to use \boldsymbol{\omega} instead. Question: Is it possible to define a…
67
votes
1 answer

Is it possible to write the '%' symbol in text in LaTeX?

I'm a beginner trying to use LaTeX. I tried to write a sentence which includes the %-symbol using \text{}, but the function that the %-symbol has in LaTeX seems to block me from using it in a normal text…
Luuk
  • 773
67
votes
1 answer

Multiple lines one side of equation with a Curly Bracket

I am trying to write an equation that looks like this, everything should be left aligned on the right hand side. I am using the following code to write this equation. \begin{equation} D_{it} = \Bigg\{if \ bank \ i \ issues \ ABS \ at \ time \…
Ahmed Arif
  • 1,345
67
votes
5 answers

How can I check in LaTeX (or plain TeX) whether a command exists, by name?

I'm looking for a LaTeX way to control macro expansion, contingent on some macro being defined or not. I'm looking for something like this (but then actually working): \newcommand[1]{\checkfor}{ \if\isdef\csname{#1} ... expand this if command…
67
votes
2 answers

titlesec: loss of section numbering with the new update (2016/03/15)

After reinstalling TeXLive distribution (install-tl-20160318, Ubuntu 14.04), a issue occurs with the updated version of the titlesec package: the section numbering is lost. What could it be missing? Is there a modification I have not seen? Below is…
ejazz
  • 1,047
67
votes
3 answers

"Closed" (square) root symbol

I found a cool trick in the LaTeX wikibook which allows the square root sign to be altered such that it "closes" over its contents. Here's an example: ("closed" root on the left, normal one on the right) The way they do this is as follows: % New…
Matthias
  • 4,051
67
votes
4 answers

Can \includegraphics be used to change an image color?

I'm including a number of PDF images in my document using \includegraphics. I'm wondering if there's a way for LaTeX to adjust their color profile, hopefully the same way it can flip images upside down, resize, and crop, as…
Mittenchops
  • 1,044
67
votes
2 answers

How to split a frame (of beamer) into 2 parts (minipage) side by side?

I would like to split a frame into 2 parts side by side by minipage. But it seems that the following code puts one on top of the other: \begin{minipage}[t]{0.48\linewidth} left part \end{minipage}\hfill \begin{minipage}[t]{0.48\linewidth} right…
SoftTimur
  • 19,767
67
votes
6 answers

How to prevent a page break before an itemize list?

It is not nice to have a page break right after the colon and have the list start on a new page: And here, finally, is the list of mission-critical items: \begin{itemize} ... \end{itemize} How can I prevent that?
Frank
  • 7,175
67
votes
7 answers

\subseteq + \circ as a single symbol ("open subset")

I'm trying to create symbols \opn for "open subset" and \cls "closed subset". I want them to look like this: My current solution is: \def\opn{\!\ensuremath{\subseteq\!\!\!\!\!\raisebox{1pt}{$\circ$}}\,}…
Leo
  • 3,499
67
votes
6 answers

What are the main differences between Texmaker and TeXstudio?

Although I've read these two posts: Texmaker vs TeXstudio (comparison) LaTeX Editors/IDEs I would like to ask again specifically about Texmaker and TeXstudio, because they are quite well ranked in the "Big list", and one of them was born as a fork…
Vicent
  • 1,960
  • 3
  • 17
  • 25
67
votes
3 answers

"Z-level" in TikZ

This is an idle question, but neverthless, I think it's interesting. Does TikZ have a simple way to implement a "z-level" specification. By this, I don't mean 3D drawing, I mean specifying which parts of the picture are on top of what. So I'd write…
Seamus
  • 73,242
67
votes
1 answer

Setting unit length in TikZ?

As I understand it, the basic unit length in TikZ is 1cm, so that for example \draw (0,0) -- (1,0); draws a line 1cm in length. What I want to do is to redefine that length so that all drawings in my document are a different size. Using ConTeXt,…
Alasdair
  • 5,257
  • 4
  • 38
  • 64