Search found 8 matches

by mike-klemin
Sat Apr 02, 2011 9:00 pm
Forum: Graphics, Figures & Tables
Topic: tikz - change default measuring units (from cm to em) ?
Replies: 2
Views: 11675

tikz - change default measuring units (from cm to em) ?

Hello!
Probably the subject a little bit miss informative. But not sure how to formulate it better..


Actually I stuck at point where I have to draw a path which coordinates use sqrt(Xem) like


\draw (0,0) -- ({sqrt(2)},1);


It works, but I need to calculate square root from 2em and not from ...
by mike-klemin
Wed Mar 30, 2011 8:08 pm
Forum: General
Topic: \newcommand in \input'ed file?
Replies: 3
Views: 4551

Re: \newcommand in \input'ed file?

Hello Stefan!
I feel so dumb...

The problem was in encoding, the preamble was encoded differently, and I had these extra characters in \newcommand :(
It was so hard to figure for me...I using Lyx 1.6 and it giving very little debug options.
I tried to reproduce it in texMaker and, it worked just ...
by mike-klemin
Wed Mar 30, 2011 7:02 pm
Forum: General
Topic: \newcommand in \input'ed file?
Replies: 3
Views: 4551

\newcommand in \input'ed file?

I have a "preamble.tex" file where I define some things and couple of \newcommands, but it looks like master document (which has \input{preabmle}) does not see definition of my newcommand, but other things are apply successfully like \usepackage{}.

if there any possibility to make it working? I ...
by mike-klemin
Fri Feb 25, 2011 4:41 pm
Forum: Graphics, Figures & Tables
Topic: Control table width by \textwidth?
Replies: 0
Views: 1682

Control table width by \textwidth?


\usepackage{longtable}
\begin{longtable}{%
|>{\centering}m{0.16\textwidth}
|>{\centering}m{0.16\textwidth}
|>{\centering}m{0.16\textwidth}
|>{\centering}m{0.16\textwidth}
|>{\centering}m{0.16\textwidth}
|>{\centering}m{0.16\textwidth}|}
\hline
1&%
2&%
3&%
4&%
5&%
6\tabularnewline
\hline
\end ...
by mike-klemin
Sun Feb 20, 2011 6:40 pm
Forum: Graphics, Figures & Tables
Topic: Vertically align Picture in a multi-rowed Table Cell
Replies: 2
Views: 4238

Re: Vertically align Picture in a multi-rowed Table Cell

Thanks a lot. Doesn't makes big difference, but now I feel better when aligning things by \vspaces in table cells :)
by mike-klemin
Sun Feb 20, 2011 3:54 pm
Forum: General
Topic: Definition of new command does not work
Replies: 3
Views: 3777

Definition of new command does not work

Hello Stefan,
I seen you post a lot of useful replies and prayed Ill get one too :)

Yes, I am not sure why did I wrote vbox*... I spent all morning this Sunday, to understand WTF it's not working...well from the bright side I discovered many other thing doing so.

Actually, I want to define a new ...
by mike-klemin
Sun Feb 20, 2011 11:57 am
Forum: General
Topic: Definition of new command does not work
Replies: 3
Views: 3777

Definition of new command does not work

I want to define a new command like below
\newcommand{\my}[1]{\vbox*{{\#1}em}}
When I try \my{2} it only outputs a list of errors like


! You can't use `\end' in internal vertical mode.
\enddocument ... \endgroup \deadcycles \z@ \@@end
l.37 \end{document}
Sorry, but I'm not programmed to handle ...
by mike-klemin
Fri Feb 18, 2011 9:58 pm
Forum: Graphics, Figures & Tables
Topic: Vertically align Picture in a multi-rowed Table Cell
Replies: 2
Views: 4238

Vertically align Picture in a multi-rowed Table Cell

Hello,
I have searched through all the forum, I have found almost like my cases, but nothing worked. There is some rowspans, but my quesiton is how do I vertically align the image in the middle of the rowspanned cell... I Just can't figure it...



\begin{tabular}
{
|>{\centering}m{2.5cm ...