Search found 4 matches

by ihiribar
Fri Mar 12, 2010 2:59 pm
Forum: General
Topic: String to number
Replies: 3
Views: 5357

Re: String to number

Thank you that was exactly what i needed. :D
by ihiribar
Fri Mar 12, 2010 12:18 pm
Forum: General
Topic: String to number
Replies: 3
Views: 5357

String to number

Ok, maybe this is too complicated to do. but is there any other useful way to have a function do something like


\LeftOrRight{v3}{v5} %writes the word "left"
\LeftOrRight{v1}{v3} %also write the word "left"
\LeftOrRight{v5}{v4} %write the word "right" (because 5>4)
\LeftOrRight{v2}{v1} %write the ...
by ihiribar
Wed Mar 10, 2010 6:00 pm
Forum: LyX
Topic: Makros for text
Replies: 3
Views: 4546

Makros for text

you could do something like

Code: Select all

\newcommand{\etal}{\textit{et al.}}
...
Santa \etal have written an article
... 
and Claus \etal made the pictures
the command \etal will simply be substituted with the text between {...} everytime it is used
by ihiribar
Wed Mar 10, 2010 5:40 pm
Forum: General
Topic: String to number
Replies: 3
Views: 5357

String to number

Hi!

From the package feynmf i get stringvalues like 'v1' and 'v2'.... 'vN' which represent points in a feynmangraph. I know how to implement \DrawLeftBentLine... my problem is to convert a string into an integernumber.

i want to draw lines by

\newcommand{\bentline}[2]{
\ifthenelse ...