GuM
  • Member for 6 years, 11 months
  • Last seen more than a month ago
  • Italy
3 answers
15 votes
2k views
Strange symbol seen in an article
6 votes

(I expected @egreg to remark this...) I don’t know the meaning of this “rotated union symbol”; but assuming it is a binary operator like \cup, \cap, etc., you'd probably want to typeset it as such, ...

View answer
2 answers
2 votes
283 views
Theorem and definition name in margin
1 votes

Your question lacks some important details, and in particular you do not specify whether or not you are using a particular package to define your “theorem-like” environments. I’ll assume that you are ...

View answer
2 answers
4 votes
457 views
How to draw regular polygons in math mode
3 votes

This answer of mine can easily be adapted to your case, with the help of the curve2e package to enable the use of polar coordinates inside picture environments. The symbols are automatically scaled ...

View answer
2 answers
5 votes
238 views
Tree inside a function
Accepted answer
7 votes

Well, you could use the halloweenmath package: a package that draws mathematical symbols that look like witches, pumpkins, ghosts, and bats is surely also capable of drawing a simple tree graph! The ...

View answer
2 answers
9 votes
480 views
Define a command differently in inline vs display mode
6 votes

It’s not clear what you want to do when you explicitly reset the math style. The following solution, which requires amsmath but works also with the “classical” typesetting engines, discriminates ...

View answer
1 answers
2 votes
98 views
Using \small with an extsizes size causes problem
Accepted answer
2 votes

Unfortunately, the nodes that contain instructions to change the current ink color are not discardable, so you need to bury them inside a \leaders box; this does not allow the use of \leaders that ...

View answer
2 answers
5 votes
431 views
Using a primed sum operator in display and text mode
3 votes

As already said in the comments, this problem is the main subject of Exercise 18.44 of The TeXbook. Barbara Beeton has already suggested a variation of one of the two solutions that Knuth presents in ...

View answer
1 answers
2 votes
998 views
Blackboard type \Omega symbol
Accepted answer
2 votes

A simple solution is to declare another “math alphabet” with a different name: % My standard header for TeX.SX answers: \documentclass[a4paper]{article} % To avoid confusion, let us explicitly ...

View answer
4 answers
4 votes
1k views
Environment formatting: how to display the name of an axiom instead of its counter number
2 votes

Seeing that this question has been reopened, I’ve thought that, after all, I could elaborate on this comment and offer a solution that relies only on the amsthm package. As Barbara Beeton has already ...

View answer
1 answers
3 votes
580 views
Center text vertically on page with \vspace*{\fill} -- More space at top of the page
Accepted answer
3 votes

In good typography, the distance between two consecutive lines of text on a page should not depend on how tall the letters they contain are (well, this doesn’t hold true only in good typography!). ...

View answer
1 answers
5 votes
760 views
scalebox and equations
Accepted answer
9 votes

I see essentially two sources of trouble: LaTeX allows “Display math mode”, which is the math mode implied by the \[...\] syntax, only inside the so-called “paragraph mode” (the name was chosen by ...

View answer
1 answers
1 votes
873 views
Define a new font command
Accepted answer
6 votes

LaTeX provides the \DeclareTextFontCommand declaration precisely for this purpose; in your case, you should say, for example, \DeclareTextFontCommand{\textbfit}{\bfseries\itshape} That is, in the ...

View answer
2 answers
6 votes
560 views
Cross-referencing enumerate item
4 votes

The key is to redefine the macro \p@enumii, which holds the prefix used in this situation: \documentclass[12pt]{article} \begin{document} \begin{enumerate} \item Solve $x^2=1$. \item Solve $...

View answer
4 answers
17 votes
2k views
How to create a summation symbol with a vertical bar?
13 votes

To try to improve one of egreg’s answers is an exercise that is, at the same time, both enjoyable and instructive—plus, it can give bragging rights. (;-) In this case, I deem that the accepted ...

View answer
1 answers
2 votes
703 views
How to declare a delimiter to be a left or right delimiter?
Accepted answer
3 votes

If you say, in a math formula, \mathopen|, then the vertical bar will be interpreted as an Open atom (i.e., a left delimiter), yet its size won’t be changed. Similarly, \mathclose| yields a Close ...

View answer
4 answers
4 votes
828 views
How to reduce space between $n\equiv 1\pmod{4}$
3 votes

The LaTeX kernel borrows its definition of \pmod \def\pmod#1{% \allowbreak\mkern18mu({\operator@font mod}\,\,#1)} (see ltmath.dtx, code lines 39–40) from plain TeX, in which it reads \def\pmod#1{\...

View answer
1 answers
2 votes
1k views
Different Fonts in Latex Article Class
Accepted answer
2 votes

It appears that you are using pdfTeX with type1 fonts (not XeTeX, not LuaTeX): what follows assume this. To set Times New Roman as the default font, load the newtxtext package. However, if you load ...

View answer
2 answers
4 votes
715 views
Is there a way to write slanted non-italic (especially bold/bb lowercase) letters in math mode?
4 votes

An alternative to Steven’s answer: % My standard header for TeX.SX answers: \documentclass[a4paper]{article} % To avoid confusion, let us explicitly % declare the ...

View answer
2 answers
0 votes
147 views
Using different fonts for theorem label in header
Accepted answer
1 votes

In a comment to my answer to the original question, the OP explained that this question actually asks how to have the references to the theorem titles included in the running heads atop pages use the ...

View answer
4 answers
15 votes
2k views
7.0pt ≠ x⋅10.0pt for all x
1 votes

This should not be an answer, but rather a comment both to @egreg’s answer and to David Carlisle’s; unfortunately, I need to include some sample code, and this can only be done (in an intelligible ...

View answer
2 answers
2 votes
1k views
Position figure (left, right, center ) minipage, wrapfigure etc.. and equation
4 votes

Have a look at this (same remarks as Bernard’s): % My standard header for TeX.SX answers: \documentclass[a4paper]{article} % To avoid confusion, let us explicitly % ...

View answer
2 answers
9 votes
2k views
Is it possible to "relocate" my ~/texmf/ directory?
6 votes

I had written most of this answer more or less a month ago, but I hadn’t found the time to complete it until now. Shorter Answer Elaborating on what I’ve already said in a comment, in my humble ...

View answer
2 answers
1 votes
336 views
How to set paragraph width as the width of the longest line
2 votes

TeX has the \halign primitive for this (this question is tagged “plain-tex”, isn’t it?). Instead of \break you have to use \cr; a little drawback is that you have to request the paragraph indentation ...

View answer
2 answers
3 votes
462 views
fancyhdr is the same for even and odd pages
Accepted answer
2 votes

While I was preparing this answer, the OP posted his. Maybe, however, that the following example of how to get a twosided document, with different headers on odd and even pages, but with the text ...

View answer
3 answers
4 votes
2k views
Need a big integral symbol in a "cases" environment
7 votes

The code % My standard header for TeX.SX answers: \documentclass[a4paper]{article} % To avoid confusion, let us explicitly % declare the paper format. \usepackage[...

View answer
3 answers
6 votes
1k views
How to make a 0pt height box?
3 votes

This is essentially just a comment, but it doesn’t fit in 600 characters: is it this what you are trying to achieve? % My standard header for TeX.SX answers: \documentclass[a4paper]{article} % To ...

View answer
4 answers
5 votes
1k views
Aligned equations with comments/explanations
1 votes

Well, the following is a very simple trick that “kinda solves the problem”: % My standard header for TeX.SX answers: \documentclass[a4paper]{article} % To avoid confusion, let us explicitly ...

View answer
4 answers
6 votes
699 views
How do I prevent "s from turning into ß with babel?
5 votes

Solution 3: use left and right quotes in the source too, as David Carlisle auggested: \documentclass{article} \usepackage[ngerman]{babel} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \...

View answer
1 answers
2 votes
132 views
T1 breaks hyphenation
Accepted answer
2 votes

Listen, I’ve simply tried to fix your problem, but I’m afraid the package should undergo an extensive review. Try saving the following code in the same directory as the (main) file you want to ...

View answer
2 answers
3 votes
224 views
How to stretch a vbox to fit it's parent PlainTeX?
Accepted answer
3 votes

This works as expected: \def\blankbox#1{% <-- important! \hbox{% <-- important! \vrule width 5pt \kern -5pt \vbox to #1 {% \hrule height 5pt width #1 ...

View answer
1
2 3 4 5
11