Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   [Latex] \newcommand Text wird nicht formatiert (https://www.delphipraxis.net/158742-%5Blatex%5D-%5Cnewcommand-text-wird-nicht-formatiert.html)

Luckie 1. Mär 2011 02:16


[Latex] \newcommand Text wird nicht formatiert
 
Ich versuche mit folgendem neuen Befehl eine Sektionsüberschrift auszugeben und darunter einen fett formatiertent Text und dann einen Abstand von 3mm:
Code:
\newcommand{\diarysection}[1]{
   \setcounter{section}{0}\addsec
   {\bf #1 Uhr}
   \vspace{3mm}
}
Aufruf:
Code:
\diarysection{Montag, 28. Februar 2011}{15:26}
Leider formatiert er mir den Text nicht fett, er schreibt das "Uhr" nicht dahinter und er macht auch keinen 3mm Abstand. Meine Quelle war: http://www.weinelt.de/latex/newcommand.html

Was mache ich da noch falsch?

Habe es jetzt so gelöst:
Code:
\newcommand{\diarytime}[1]{{\parindent0.0em \bf #1 Uhr}\\}
Ist auch flexibler.


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:02 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz