Search found 37 matches

by johnjamessmith0
Fri Dec 31, 2010 7:03 am
Forum: Graphics, Figures & Tables
Topic: TikZ: alignment of horizontal axis labels
Replies: 3
Views: 5020

Re: TikZ: alignment of horizontal axis labels

That method seems to require some inconvenient precomputation for at least two things: the vertical alignment of the labels and their horizontal alignment. Which means one can't easily remove or add labels that have wacky vertical dimensions, like f_1^2, for example. I hadn't seen that syntax before ...
by johnjamessmith0
Sun Dec 26, 2010 12:53 am
Forum: Graphics, Figures & Tables
Topic: Problems with tikZ
Replies: 4
Views: 4457

Problems with tikZ

I'm glad the solution works for you. I should add that you might want to put a green checkmark on your OP, as described in http://www.latex-community.org/forum/viewtopic.php?f=37&t=5838, section 3, before localghost comes around. ;)


Just for my personal knoledgde, does someone here know how to ...
by johnjamessmith0
Fri Dec 24, 2010 8:28 pm
Forum: Graphics, Figures & Tables
Topic: Problems with tikZ
Replies: 4
Views: 4457

Problems with tikZ

I'm learning to use TikZ too. I managed to come up with a solution with rather ugly parts in the code, but I hope the output will do. It isn't very similar to your original code, sorry. Perhaps the most unsatisfactory part is the manual alignment of the column headers. Also, if you make the font ...
by johnjamessmith0
Thu Dec 23, 2010 3:38 am
Forum: Graphics, Figures & Tables
Topic: TikZ: alignment of horizontal axis labels
Replies: 3
Views: 5020

TikZ: alignment of horizontal axis labels

Consider a horizontal axis with labels at certain points:

\documentclass{article}

\usepackage{tikz}

\begin{document}


\begin{tikzpicture}
\draw (0,0) -- (5,0);
\node [below] at (1,0) {$a$};
\node [below] at (2,0) {$b$};
\node [below] at (3,0) {$g$};
\end{tikzpicture}

\bigskip
\bigskip ...
by johnjamessmith0
Wed Dec 15, 2010 6:26 am
Forum: Text Formatting
Topic: column balancing with multicol, enumerate, and sections
Replies: 1
Views: 3209

column balancing with multicol, enumerate, and sections

The latest object of my frustration. Consider the following code (I hope it's minimal enough):


\documentclass{article}

\usepackage{enumitem}
\setlist{nolistsep}
\usepackage{lipsum}
\usepackage{multicol}

\begin{document}

\begin{multicols}{2}
\lipsum[2]
%% A %% \section*{hahaha}
\lipsum[4]
%% B ...
by johnjamessmith0
Sun Oct 31, 2010 4:05 am
Forum: Text Formatting
Topic: Format for indented questions/answers
Replies: 7
Views: 10601

Re: Format for indented questions/answers

If I understand the problem correctly, the business with the large spaces (which are not blank lines, if I'm not mistaken) and the fix with \raggedbottom is this: on every page, TeX automatically tries make the text line up flush to the bottom margin at the bottom of the main textblock, so that the ...
by johnjamessmith0
Sun Oct 31, 2010 3:48 am
Forum: Graphics, Figures & Tables
Topic: Automatically detecting wrapfigure width?
Replies: 1
Views: 2505

Automatically detecting wrapfigure width?

I don't have much time right now, but I think you should be able to do what you want with a savebox. See http://lglinux.blogspot.com/2008/01/mea ... vebox.html. Good luck.
by johnjamessmith0
Sun Oct 17, 2010 9:41 pm
Forum: Text Formatting
Topic: how would you typeset Q and A?
Replies: 3
Views: 10951

how would you typeset Q and A?

You probably want to make your own command. Something quick and dirty to get you started:

\documentclass{article}

\newenvironment{qanda}{\setlength{\parindent}{0pt}}{\bigskip}
\newcommand{\Q}{\bigskip\bfseries Q: }
\newcommand{\A}{\par\textbf{A:} \normalfont}

\begin{document}

The following Q\&A ...
by johnjamessmith0
Fri Oct 08, 2010 11:50 pm
Forum: General
Topic: Error while building for the first time
Replies: 2
Views: 3160

Re: Error while building for the first time

This happens to me from time to time. Whenever it's happened to me, one of the following worked:

1) Make sure the paths to MiKTeX and your pdf viewer are correct.
2) Do something silly like restarting your computer.

I know this advice looks dumb right now, but just try it.