Hi all,
Apparently there are some possibilities to use latex macro in a mediawiki (see for instance http://www.mediawiki.org/wiki/Extension:WikiTex/Installation).
Can we also use latex macros on the orocos wiki and how can I configure this?
Tinne
Orocos Real-Time ToolkitSmarter realtime. Safer threads
|
|
using latex macros in the wiki
Hi all, Apparently there are some possibilities to use latex macro in a mediawiki (see for instance http://www.mediawiki.org/wiki/Extension:WikiTex/Installation). Tinne |
wiki
hi,
I would like to upload a scheme to the wiki, but we have only 10MB of disk space?
The message I got: 'The selected file pr2-comanipulation-app-components.pdf could not be uploaded. The file is 582.62 KB which would exceed your disk quota of 10 MB.'
I'll put it on my own web space, but it would be nice to keep it with the wiki page it belongs, avoiding broken links, no?
Anyway, it looks that we're at the limit of our web space (for attachments to the wiki).
nick
using latex macros in the wiki
Hi Tinne,
On Mon, Jan 23, 2012 at 9:57 AM, Tinne De Laet <
Tinne [dot] DeLaet [..] ...> wrote:
> Hi all,
>
> Apparently there are some possibilities to use latex macro in a mediawiki
> (see for instance
> http://www.mediawiki.org/wiki/Extension:WikiTex/Installation).
> Can we also use latex macros on the orocos wiki and how can I configure
> this?
>
We're not running official Mediawiki, but a 'DruTex' plugin for the Drupal
Mediawiki emulation. DruTex should be able to cover most needs.
It seemed like this Drutex-enabled mediawiki was not enabled for
book-aka-wiki pages. Can you check again if it works now ?
Peter
using latex macros in the wiki
On Monday 23 January 2012 17:13:14 Peter Soetens wrote:
> Hi Tinne,
>
> On Mon, Jan 23, 2012 at 9:57 AM, Tinne De Laet <
>
> Tinne [dot] DeLaet [..] ...> wrote:
> > Hi all,
> >
> > Apparently there are some possibilities to use latex macro in a
> > mediawiki
> > (see for instance
> > http://www.mediawiki.org/wiki/Extension:WikiTex/Installation).
> > Can we also use latex macros on the orocos wiki and how can I configure
> > this?
>
> We're not running official Mediawiki, but a 'DruTex' plugin for the Drupal
> Mediawiki emulation. DruTex should be able to cover most needs.
>
> It seemed like this Drutex-enabled mediawiki was not enabled for
> book-aka-wiki pages. Can you check again if it works now ?
I think you misunderstood my question.
I indeed found out that I had to change the input format to Mediawiki + Drutex
to use latex code (using the $ $ notation).
I however want to do something more advanced with a macro.tex file.
This macro.tex file is a latex file defining some latex commands
e.g
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% POSITION
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% position: position of point #1 belonging to body #2 with respect to point
#3 belonging to body #4 expressed in orientation frame #5 (leave empty if not
needed)
\newcommand{\Position}[5]
{\textrm{Position\ifthenelse{\equal{#5}{}}{}{Coord}}\left(\fixedTo{\point{#1}}
{#2} , \fixedTo{\point{#3}}{#4} \ifthenelse{\equal{#5}{}}{}{,\orientation{#5}}
\right)}
This helps to use a nice latex notation for our wiki explanations.
So to use this file we should have to make DruTex understand that it has to
include the macro.tex file.
In the url I mentioned before they seem to do something similar for mediawiki
extension WikiTex.
Tinne
using latex macros in the wiki
On Tue, Jan 24, 2012 at 9:52 AM, Tinne De Laet <
tinne [dot] delaet [..] ...> wrote:
> On Monday 23 January 2012 17:13:14 Peter Soetens wrote:
> > Hi Tinne,
> >
> > On Mon, Jan 23, 2012 at 9:57 AM, Tinne De Laet <
> >
> > Tinne [dot] DeLaet [..] ...> wrote:
> > > Hi all,
> > >
> > > Apparently there are some possibilities to use latex macro in a
> > > mediawiki
> > > (see for instance
> > > http://www.mediawiki.org/wiki/Extension:WikiTex/Installation).
> > > Can we also use latex macros on the orocos wiki and how can I configure
> > > this?
> >
> > We're not running official Mediawiki, but a 'DruTex' plugin for the
> Drupal
> > Mediawiki emulation. DruTex should be able to cover most needs.
> >
> > It seemed like this Drutex-enabled mediawiki was not enabled for
> > book-aka-wiki pages. Can you check again if it works now ?
>
> I think you misunderstood my question.
> I indeed found out that I had to change the input format to Mediawiki +
> Drutex
> to use latex code (using the $ $ notation).
> I however want to do something more advanced with a macro.tex file.
> This macro.tex file is a latex file defining some latex commands
> e.g
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> % POSITION
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> % position: position of point #1 belonging to body #2 with respect to
> point
> #3 belonging to body #4 expressed in orientation frame #5 (leave empty if
> not
> needed)
> \newcommand{\Position}[5]
>
> {\textrm{Position\ifthenelse{\equal{#5}{}}{}{Coord}}\left(\fixedTo{\point{#1}}
> {#2} , \fixedTo{\point{#3}}{#4}
> \ifthenelse{\equal{#5}{}}{}{,\orientation{#5}}
> \right)}
>
> This helps to use a nice latex notation for our wiki explanations.
>
> So to use this file we should have to make DruTex understand that it has to
> include the macro.tex file.
> In the url I mentioned before they seem to do something similar for
> mediawiki
> extension WikiTex.
>
I copy-pasted the above latex snippet in the latex template on the server
(used behind the scenes to render your code). Does the macro work for you
now ?
You can post a file with all the macros you require and then I can add
these too.
Peter
using latex macros in the wiki
On Tuesday 24 January 2012 23:35:24 Peter Soetens wrote:
> On Tue, Jan 24, 2012 at 9:52 AM, Tinne De Laet <
>
> tinne [dot] delaet [..] ...> wrote:
> > On Monday 23 January 2012 17:13:14 Peter Soetens wrote:
> > > Hi Tinne,
> > >
> > > On Mon, Jan 23, 2012 at 9:57 AM, Tinne De Laet <
> > >
> > > Tinne [dot] DeLaet [..] ...> wrote:
> > > > Hi all,
> > > >
> > > > Apparently there are some possibilities to use latex macro in a
> > > > mediawiki
> > > > (see for instance
> > > > http://www.mediawiki.org/wiki/Extension:WikiTex/Installation).
> > > > Can we also use latex macros on the orocos wiki and how can I
> > > > configure this?
> > >
> > > We're not running official Mediawiki, but a 'DruTex' plugin for the
> >
> > Drupal
> >
> > > Mediawiki emulation. DruTex should be able to cover most needs.
> > >
> > > It seemed like this Drutex-enabled mediawiki was not enabled for
> > > book-aka-wiki pages. Can you check again if it works now ?
> >
> > I think you misunderstood my question.
> > I indeed found out that I had to change the input format to Mediawiki +
> > Drutex
> > to use latex code (using the $ $ notation).
> > I however want to do something more advanced with a macro.tex file.
> > This macro.tex file is a latex file defining some latex commands
> > e.g
> >
> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> > % POSITION
> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> > % position: position of point #1 belonging to body #2 with respect to
> > point
> > #3 belonging to body #4 expressed in orientation frame #5 (leave empty
> > if
> > not
> > needed)
> > \newcommand{\Position}[5]
> >
> > {\textrm{Position\ifthenelse{\equal{#5}{}}{}{Coord}}\left(\fixedTo{\poin
> > t{#1}} {#2} , \fixedTo{\point{#3}}{#4}
> > \ifthenelse{\equal{#5}{}}{}{,\orientation{#5}}
> > \right)}
> >
> > This helps to use a nice latex notation for our wiki explanations.
> >
> > So to use this file we should have to make DruTex understand that it has
> > to include the macro.tex file.
> > In the url I mentioned before they seem to do something similar for
> > mediawiki
> > extension WikiTex.
>
> I copy-pasted the above latex snippet in the latex template on the server
> (used behind the scenes to render your code). Does the macro work for you
> now ?
No.
The result of $\Position{a}{a}{a}{a}{a}$ is just aaaaa.
But this is probably cause since the code snipset uses some other macro
commands that I did not provide.
My macros are attached to this mail.
>
> You can post a file with all the macros you require and then I can add
> these too.
Can I add them myself or do I always have to bother you?
Tinne
using latex macros in the wiki
On Thu, Jan 26, 2012 at 1:57 PM, Tinne De Laet
<tinne [dot] delaet [..] ...> wrote:
> On Tuesday 24 January 2012 23:35:24 Peter Soetens wrote:
>> On Tue, Jan 24, 2012 at 9:52 AM, Tinne De Laet <
>>
>> tinne [dot] delaet [..] ...> wrote:
>> > On Monday 23 January 2012 17:13:14 Peter Soetens wrote:
>> > > Hi Tinne,
>> > >
>> > > On Mon, Jan 23, 2012 at 9:57 AM, Tinne De Laet <
>> > >
>> > > Tinne [dot] DeLaet [..] ...> wrote:
>> > > > Hi all,
>> > > >
>> > > > Apparently there are some possibilities to use latex macro in a
>> > > > mediawiki
>> > > > (see for instance
>> > > > http://www.mediawiki.org/wiki/Extension:WikiTex/Installation).
>> > > > Can we also use latex macros on the orocos wiki and how can I
>> > > > configure this?
>> > >
>> > > We're not running official Mediawiki, but a 'DruTex' plugin for the
>> >
>> > Drupal
>> >
>> > > Mediawiki emulation. DruTex should be able to cover most needs.
>> > >
>> > > It seemed like this Drutex-enabled mediawiki was not enabled for
>> > > book-aka-wiki pages. Can you check again if it works now ?
>> >
>> > I think you misunderstood my question.
>> > I indeed found out that I had to change the input format to Mediawiki +
>> > Drutex
>> > to use latex code (using the $ $ notation).
>> > I however want to do something more advanced with a macro.tex file.
>> > This macro.tex file is a latex file defining some latex commands
>> > e.g
>> >
>> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>> > % POSITION
>> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>> > % position: position of point #1 belonging to body #2 with respect to
>> > point
>> > #3 belonging to body #4 expressed in orientation frame #5 (leave empty
>> > if
>> > not
>> > needed)
>> > \newcommand{\Position}[5]
>> >
>> > {\textrm{Position\ifthenelse{\equal{#5}{}}{}{Coord}}\left(\fixedTo{\poin
>> > t{#1}} {#2} , \fixedTo{\point{#3}}{#4}
>> > \ifthenelse{\equal{#5}{}}{}{,\orientation{#5}}
>> > \right)}
>> >
>> > This helps to use a nice latex notation for our wiki explanations.
>> >
>> > So to use this file we should have to make DruTex understand that it has
>> > to include the macro.tex file.
>> > In the url I mentioned before they seem to do something similar for
>> > mediawiki
>> > extension WikiTex.
>>
>> I copy-pasted the above latex snippet in the latex template on the server
>> (used behind the scenes to render your code). Does the macro work for you
>> now ?
>
> No.
> The result of $\Position{a}{a}{a}{a}{a}$ is just aaaaa.
> But this is probably cause since the code snipset uses some other macro
> commands that I did not provide.
> My macros are attached to this mail.
>
>
>>
>> You can post a file with all the macros you require and then I can add
>> these too.
> Can I add them myself or do I always have to bother you?
We need to upload them to the server as a file. The current file has
these contents:
\documentclass[10pt,notitlepage]{article}
% good math support
\usepackage{amsmath, amsfonts, amssymb}
% UTF-8 support
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\pagestyle{empty}
\begin{document}
DRUTEX_REPLACE
\end{document}
I can put your files alongside it. How do you want me to modify the
above code snippet such that your macros/files are correctly included
?
>
> Tinne
Peter
using latex macros in the wiki
On Thursday 26 January 2012 14:04:48 Peter Soetens wrote:
> On Thu, Jan 26, 2012 at 1:57 PM, Tinne De Laet
>
> <tinne [dot] delaet [..] ...> wrote:
> > On Tuesday 24 January 2012 23:35:24 Peter Soetens wrote:
> >> On Tue, Jan 24, 2012 at 9:52 AM, Tinne De Laet <
> >>
> >> tinne [dot] delaet [..] ...> wrote:
> >> > On Monday 23 January 2012 17:13:14 Peter Soetens wrote:
> >> > > Hi Tinne,
> >> > >
> >> > > On Mon, Jan 23, 2012 at 9:57 AM, Tinne De Laet <
> >> > >
> >> > > Tinne [dot] DeLaet [..] ...> wrote:
> >> > > > Hi all,
> >> > > >
> >> > > > Apparently there are some possibilities to use latex macro
> >> > > > in a
> >> > > > mediawiki
> >> > > > (see for instance
> >> > > > http://www.mediawiki.org/wiki/Extension:WikiTex/Installati
> >> > > > on).
> >> > > > Can we also use latex macros on the orocos wiki and how
> >> > > > can I
> >> > > > configure this?
> >> > >
> >> > > We're not running official Mediawiki, but a 'DruTex' plugin
> >> > > for the
> >> >
> >> > Drupal
> >> >
> >> > > Mediawiki emulation. DruTex should be able to cover most
> >> > > needs.
> >> > >
> >> > > It seemed like this Drutex-enabled mediawiki was not enabled
> >> > > for
> >> > > book-aka-wiki pages. Can you check again if it works now ?
> >> >
> >> > I think you misunderstood my question.
> >> > I indeed found out that I had to change the input format to
> >> > Mediawiki + Drutex
> >> > to use latex code (using the $ $ notation).
> >> > I however want to do something more advanced with a macro.tex
> >> > file.
> >> > This macro.tex file is a latex file defining some latex commands
> >> > e.g
> >> >
> >> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> >> > % POSITION
> >> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> >> > % position: position of point #1 belonging to body #2 with
> >> > respect to
> >> > point
> >> > #3 belonging to body #4 expressed in orientation frame #5 (leave
> >> > empty
> >> > if
> >> > not
> >> > needed)
> >> > \newcommand{\Position}[5]
> >> >
> >> > {\textrm{Position\ifthenelse{\equal{#5}{}}{}{Coord}}\left(\fixedTo
> >> > {\poin t{#1}} {#2} , \fixedTo{\point{#3}}{#4}
> >> > \ifthenelse{\equal{#5}{}}{}{,\orientation{#5}}
> >> > \right)}
> >> >
> >> > This helps to use a nice latex notation for our wiki explanations.
> >> >
> >> > So to use this file we should have to make DruTex understand that
> >> > it has to include the macro.tex file.
> >> > In the url I mentioned before they seem to do something similar
> >> > for
> >> > mediawiki
> >> > extension WikiTex.
> >>
> >> I copy-pasted the above latex snippet in the latex template on the
> >> server (used behind the scenes to render your code). Does the macro
> >> work for you now ?
> >
> > No.
> > The result of $\Position{a}{a}{a}{a}{a}$ is just aaaaa.
> > But this is probably cause since the code snipset uses some other macro
> > commands that I did not provide.
> > My macros are attached to this mail.
> >
> >> You can post a file with all the macros you require and then I can add
> >> these too.
> >
> > Can I add them myself or do I always have to bother you?
>
> We need to upload them to the server as a file. The current file has
> these contents:
>
> \documentclass[10pt,notitlepage]{article}
>
> % good math support
> \usepackage{amsmath, amsfonts, amssymb}
>
> % UTF-8 support
> \usepackage{ucs}
> \usepackage[utf8x]{inputenc}
>
> \pagestyle{empty}
>
>
> \begin{document}
> DRUTEX_REPLACE
> \end{document}
>
> I can put your files alongside it. How do you want me to modify the
> above code snippet such that your macros/files are correctly included
> ?
before \begin{document}
add
\input{macro.tex}
\input{macroGeometricPrimitives.tex}
\input{macroSemantics.tex}
\input{macroCoordinateRepresentations.tex}
\input{macroSemanticOperations.tex}
Thanks!
Tinne
PS: I am already discussing with the colleagues in our robotics group what
would be the best way to use the latex macros on the wiki. Probably we will
adapt the command-names to avoid name clashes ...
If some one has opinions about this, please let us know.
using latex macros in the wiki
On Thu, Jan 26, 2012 at 3:03 PM, Tinne De Laet
<tinne [dot] delaet [..] ...> wrote:
> On Thursday 26 January 2012 14:04:48 Peter Soetens wrote:
>> On Thu, Jan 26, 2012 at 1:57 PM, Tinne De Laet
>>
>> <tinne [dot] delaet [..] ...> wrote:
>> > On Tuesday 24 January 2012 23:35:24 Peter Soetens wrote:
>> >> On Tue, Jan 24, 2012 at 9:52 AM, Tinne De Laet <
>> >>
>> >> tinne [dot] delaet [..] ...> wrote:
>> >> > On Monday 23 January 2012 17:13:14 Peter Soetens wrote:
>> >> > > Hi Tinne,
>> >> > >
>> >> > > On Mon, Jan 23, 2012 at 9:57 AM, Tinne De Laet <
>> >> > >
>> >> > > Tinne [dot] DeLaet [..] ...> wrote:
>> >> > > > Hi all,
>> >> > > >
>> >> > > > Apparently there are some possibilities to use latex macro
>> >> > > > in a
>> >> > > > mediawiki
>> >> > > > (see for instance
>> >> > > > http://www.mediawiki.org/wiki/Extension:WikiTex/Installati
>> >> > > > on).
>> >> > > > Can we also use latex macros on the orocos wiki and how
>> >> > > > can I
>> >> > > > configure this?
>> >> > >
>> >> > > We're not running official Mediawiki, but a 'DruTex' plugin
>> >> > > for the
>> >> >
>> >> > Drupal
>> >> >
>> >> > > Mediawiki emulation. DruTex should be able to cover most
>> >> > > needs.
>> >> > >
>> >> > > It seemed like this Drutex-enabled mediawiki was not enabled
>> >> > > for
>> >> > > book-aka-wiki pages. Can you check again if it works now ?
>> >> >
>> >> > I think you misunderstood my question.
>> >> > I indeed found out that I had to change the input format to
>> >> > Mediawiki + Drutex
>> >> > to use latex code (using the $ $ notation).
>> >> > I however want to do something more advanced with a macro.tex
>> >> > file.
>> >> > This macro.tex file is a latex file defining some latex commands
>> >> > e.g
>> >> >
>> >> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>> >> > % POSITION
>> >> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>> >> > % position: position of point #1 belonging to body #2 with
>> >> > respect to
>> >> > point
>> >> > #3 belonging to body #4 expressed in orientation frame #5 (leave
>> >> > empty
>> >> > if
>> >> > not
>> >> > needed)
>> >> > \newcommand{\Position}[5]
>> >> >
>> >> > {\textrm{Position\ifthenelse{\equal{#5}{}}{}{Coord}}\left(\fixedTo
>> >> > {\poin t{#1}} {#2} , \fixedTo{\point{#3}}{#4}
>> >> > \ifthenelse{\equal{#5}{}}{}{,\orientation{#5}}
>> >> > \right)}
>> >> >
>> >> > This helps to use a nice latex notation for our wiki explanations.
>> >> >
>> >> > So to use this file we should have to make DruTex understand that
>> >> > it has to include the macro.tex file.
>> >> > In the url I mentioned before they seem to do something similar
>> >> > for
>> >> > mediawiki
>> >> > extension WikiTex.
>> >>
>> >> I copy-pasted the above latex snippet in the latex template on the
>> >> server (used behind the scenes to render your code). Does the macro
>> >> work for you now ?
>> >
>> > No.
>> > The result of $\Position{a}{a}{a}{a}{a}$ is just aaaaa.
>> > But this is probably cause since the code snipset uses some other macro
>> > commands that I did not provide.
>> > My macros are attached to this mail.
>> >
>> >> You can post a file with all the macros you require and then I can add
>> >> these too.
>> >
>> > Can I add them myself or do I always have to bother you?
>>
>> We need to upload them to the server as a file. The current file has
>> these contents:
>>
>> \documentclass[10pt,notitlepage]{article}
>>
>> % good math support
>> \usepackage{amsmath, amsfonts, amssymb}
>>
>> % UTF-8 support
>> \usepackage{ucs}
>> \usepackage[utf8x]{inputenc}
>>
>> \pagestyle{empty}
>>
>>
>> \begin{document}
>> DRUTEX_REPLACE
>> \end{document}
>>
>> I can put your files alongside it. How do you want me to modify the
>> above code snippet such that your macros/files are correctly included
>> ?
>
> before \begin{document}
>
> add
>
> \input{macro.tex}
> \input{macroGeometricPrimitives.tex}
> \input{macroSemantics.tex}
> \input{macroCoordinateRepresentations.tex}
> \input{macroSemanticOperations.tex}
>
> Thanks!
>
> Tinne
>
> PS: I am already discussing with the colleagues in our robotics group what
> would be the best way to use the latex macros on the wiki. Probably we will
> adapt the command-names to avoid name clashes ...
> If some one has opinions about this, please let us know.
Okay, I uploaded these files and modified the template code. If
there's a new version of a file, let me know.
Peter
using latex macros in the wiki
This does not seem to work.
I tried to use
$\body{b}$
$\orientation{a}$
$\Position{a}{b}{c}{d}{r}$
but the output is just "baabcdr"
Tinne
PS: sorry for the top-posting but my email client just gave up and now I have to use the wonderful outlook web app :s
________________________________________
Van: Peter Soetens [peter [..] ...]
Verzonden: donderdag 26 januari 2012 15:08
Aan: Tinne De Laet
CC: orocos-dev [..] ...
Onderwerp: Re: [Orocos-Dev] using latex macros in the wiki
On Thu, Jan 26, 2012 at 3:03 PM, Tinne De Laet
<tinne [dot] delaet [..] ...> wrote:
> On Thursday 26 January 2012 14:04:48 Peter Soetens wrote:
>> On Thu, Jan 26, 2012 at 1:57 PM, Tinne De Laet
>>
>> <tinne [dot] delaet [..] ...> wrote:
>> > On Tuesday 24 January 2012 23:35:24 Peter Soetens wrote:
>> >> On Tue, Jan 24, 2012 at 9:52 AM, Tinne De Laet <
>> >>
>> >> tinne [dot] delaet [..] ...> wrote:
>> >> > On Monday 23 January 2012 17:13:14 Peter Soetens wrote:
>> >> > > Hi Tinne,
>> >> > >
>> >> > > On Mon, Jan 23, 2012 at 9:57 AM, Tinne De Laet <
>> >> > >
>> >> > > Tinne [dot] DeLaet [..] ...> wrote:
>> >> > > > Hi all,
>> >> > > >
>> >> > > > Apparently there are some possibilities to use latex macro
>> >> > > > in a
>> >> > > > mediawiki
>> >> > > > (see for instance
>> >> > > > http://www.mediawiki.org/wiki/Extension:WikiTex/Installati
>> >> > > > on).
>> >> > > > Can we also use latex macros on the orocos wiki and how
>> >> > > > can I
>> >> > > > configure this?
>> >> > >
>> >> > > We're not running official Mediawiki, but a 'DruTex' plugin
>> >> > > for the
>> >> >
>> >> > Drupal
>> >> >
>> >> > > Mediawiki emulation. DruTex should be able to cover most
>> >> > > needs.
>> >> > >
>> >> > > It seemed like this Drutex-enabled mediawiki was not enabled
>> >> > > for
>> >> > > book-aka-wiki pages. Can you check again if it works now ?
>> >> >
>> >> > I think you misunderstood my question.
>> >> > I indeed found out that I had to change the input format to
>> >> > Mediawiki + Drutex
>> >> > to use latex code (using the $ $ notation).
>> >> > I however want to do something more advanced with a macro.tex
>> >> > file.
>> >> > This macro.tex file is a latex file defining some latex commands
>> >> > e.g
>> >> >
>> >> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>> >> > % POSITION
>> >> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>> >> > % position: position of point #1 belonging to body #2 with
>> >> > respect to
>> >> > point
>> >> > #3 belonging to body #4 expressed in orientation frame #5 (leave
>> >> > empty
>> >> > if
>> >> > not
>> >> > needed)
>> >> > \newcommand{\Position}[5]
>> >> >
>> >> > {\textrm{Position\ifthenelse{\equal{#5}{}}{}{Coord}}\left(\fixedTo
>> >> > {\poin t{#1}} {#2} , \fixedTo{\point{#3}}{#4}
>> >> > \ifthenelse{\equal{#5}{}}{}{,\orientation{#5}}
>> >> > \right)}
>> >> >
>> >> > This helps to use a nice latex notation for our wiki explanations.
>> >> >
>> >> > So to use this file we should have to make DruTex understand that
>> >> > it has to include the macro.tex file.
>> >> > In the url I mentioned before they seem to do something similar
>> >> > for
>> >> > mediawiki
>> >> > extension WikiTex.
>> >>
>> >> I copy-pasted the above latex snippet in the latex template on the
>> >> server (used behind the scenes to render your code). Does the macro
>> >> work for you now ?
>> >
>> > No.
>> > The result of $\Position{a}{a}{a}{a}{a}$ is just aaaaa.
>> > But this is probably cause since the code snipset uses some other macro
>> > commands that I did not provide.
>> > My macros are attached to this mail.
>> >
>> >> You can post a file with all the macros you require and then I can add
>> >> these too.
>> >
>> > Can I add them myself or do I always have to bother you?
>>
>> We need to upload them to the server as a file. The current file has
>> these contents:
>>
>> \documentclass[10pt,notitlepage]{article}
>>
>> % good math support
>> \usepackage{amsmath, amsfonts, amssymb}
>>
>> % UTF-8 support
>> \usepackage{ucs}
>> \usepackage[utf8x]{inputenc}
>>
>> \pagestyle{empty}
>>
>>
>> \begin{document}
>> DRUTEX_REPLACE
>> \end{document}
>>
>> I can put your files alongside it. How do you want me to modify the
>> above code snippet such that your macros/files are correctly included
>> ?
>
> before \begin{document}
>
> add
>
> \input{macro.tex}
> \input{macroGeometricPrimitives.tex}
> \input{macroSemantics.tex}
> \input{macroCoordinateRepresentations.tex}
> \input{macroSemanticOperations.tex}
>
> Thanks!
>
> Tinne
>
> PS: I am already discussing with the colleagues in our robotics group what
> would be the best way to use the latex macros on the wiki. Probably we will
> adapt the command-names to avoid name clashes ...
> If some one has opinions about this, please let us know.
Okay, I uploaded these files and modified the template code. If
there's a new version of a file, let me know.
Peter
using latex macros in the wiki
On Thu, Jan 26, 2012 at 3:47 PM, Tinne De Laet
<Tinne [dot] DeLaet [..] ...> wrote:
> This does not seem to work.
> I tried to use
> $\body{b}$
> $\orientation{a}$
> $\Position{a}{b}{c}{d}{r}$
>
> but the output is just "baabcdr"
It works now. See http://www.orocos.org/wiki/test-latex
Peter
using latex macros in the wiki
On Thursday 26 January 2012 16:13:16 Peter Soetens wrote:
> On Thu, Jan 26, 2012 at 3:47 PM, Tinne De Laet
>
> <Tinne [dot] DeLaet [..] ...> wrote:
> > This does not seem to work.
> > I tried to use
> > $\body{b}$
> > $\orientation{a}$
> > $\Position{a}{b}{c}{d}{r}$
> >
> > but the output is just "baabcdr"
>
> It works now. See http://www.orocos.org/wiki/test-latex
Indeed! Thanks!
Tinne