Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Efficiently Using LaTeX

  1. #11
    Join Date
    Jan 2007
    Beans
    15
    Distro
    Ubuntu 6.10 Edgy

    Re: Efficiently Using LaTeX

    Perfect, \begin{gather*} is exactly what I'm looking for.

  2. #12
    Join Date
    Oct 2006
    Location
    Belgium (Europe)
    Beans
    17
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Efficiently Using LaTeX

    I love working with LaTeX like you too, and this is what I put in most of my documents to get better margins:

    Code:
    \setlength{\voffset}{-2cm}
      \addtolength{\textheight}{2cm}
      \addtolength{\textwidth}{3cm}
      \addtolength{\hoffset}{-1.5cm}
    That should work if you use the A4paper-class (for letter size paper, I wouldn't know).

    I also have a full file of common abbreviations (commands/environments), some are in Dutch (as I'm Flemish), and they are mostly mathematical, mechanical or chemical shortcuts. Perhaps you have some use for these. You can include them into your own files by putting them in the pre-able or by referring to them by saving the file in the same folder as your document (let's say commands.inc.tex) and then typing \input{commands.inc.tex} in your document's pre-amble.

    Code:
    % Egon Geerardyn common latex Commands
    %
    % 2007 01 03 : Version 0.5
    %
    
    % dutch arc-goniometric functions
        \newcommand{\bgsin}{\mbox{\textsf{Bgsin}}\,}
        \newcommand{\bgcos}{\mbox{\textsf{Bgcos}}\,}
        \newcommand{\bgtan}{\mbox{\textsf{Bgtan}}\,}
        \newcommand{\bgcot}{\mbox{\textsf{Bgcot}}\,}
    
    %alternative notation for arc-goniometric functions
        \newcommand{\argcos}{\mbox{\textsf{argcos}}\,}
        \newcommand{\argsin}{\mbox{\textsf{argsin}}\,}
        \newcommand{\argtan}{\mbox{\textsf{argtan}}\,}
        \newcommand{\argcot}{\mbox{\textsf{argcot}}\,}
        
    %alternative notation for arc-hyperbolic functions
        \newcommand{\argcosh}{\mbox{\textsf{argcosh}}\,}
        \newcommand{\argsinh}{\mbox{\textsf{argsinh}}\,}
        \newcommand{\argtanh}{\mbox{\textsf{argtanh}}\,}
        \newcommand{\argcoth}{\mbox{\textsf{argcoth}}\,} 
        
    % coordinaat   
        \newcommand{\co}{\mbox{ \textsf{co}}\,}
    % absolute waarde
        \newcommand{\abs}[1]{\left| #1 \right|}
    % degree symbol
        \newcommand{\degree}[0]{^\circ}
    
    % ronde B voor bol
        \newcommand{\bol}[0]{\mathscr{B}}
    
    % ronde K voor kwadriek
        \newcommand{\kwadriek}[0]{\mathscr{K}}
    
    %differentials
        \renewcommand{\d}[1]{\;\textsf{d}#1}
        \newcommand{\pd}[1]{\partial #1}
        \newcommand{\D}{\;\textsf{D}}
    
    %dot and double dot for D_t en D_t^2
        \newcommand{\dt}[1]{\dot{#1}} %dot notation for d/dt
        \newcommand{\dtt}[1]{\ddot{#1}} % double dot notation for d^2 / dt^2
    
    %accent (acute) for D_s and D_s^2
        \newcommand{\ds}[1]{#1 \acute{}\,} % accent notation for d/ds
        \newcommand{\dss}[1]{#1 \acute{}\, \acute{}\,} % double accent notation for d^2 / ds^2
    
    %accent notation for arbitrrary derivative of order 1 or 2
        \newcommand{\dx}[1]{#1 \grave{}\,} % accent notation for arbitrary d / dx
        \newcommand{\dxx}[1]{#1 \grave{} \, \grave{}\,} % double accent notation for d^2 / dx^2
    
    %norm of a vector
        \newcommand{\norm}[1]{\left\| #1 \right\|}
    
    %infinity redeclariation for use with WikiPedia LaTeX notation
        \newcommand{\infin}{\infty}
    
    %Probability notation
        \newcommand{\prob}[1]{P\left(#1\right)}
    
    %vector functions 
        % vector notation
        \newcommand{\vect}[1]{\overline{#1}} %large notation
        %(scalar product, <>-notation
        \newcommand{\scalprod}[2]{\left\langle #1,#2 \right\rangle}
        \newcommand{\scalprodv}[2]{\scalprod{\vec{#1}}{\vec{#2}}} %includes vector arrows
        \newcommand{\scalprodV}[2]{\scalprod{\vect{#1}}{\vect{#2}}}
        %vectorr product
        \newcommand{\vectprod}[2]{\left( #1 \times #2 \right)}
        \newcommand{\vectprodv}[2]{\vectprod{\vec{#1}}{\vec{#2}}} % includes vector arrows
        \newcommand{\vectprodV}[2]{\vectprod{\vect{#1}}{\vect{#2}}}
        %gradient, rotatie, divergentie
        \newcommand{\Dgrad}[1]{\textsf{grad}\,#1\;}
        \newcommand{\Ddiv}[1]{\textsf{div}\,#1\;}
        \newcommand{\Drot}[1]{\textsf{rot}\,#1\;}
    %chemistry
        %concentration
        \newcommand{\conc}[1]{\left[ #1 \right]}
        %equilibrum arrows
        \newcommand{\evenwicht}{\rightleftharpoons}
        \newcommand{\reactie}{\rightarrow}
        %reactieconstante
        \newcommand{\K}{\,\textsf{K}}
        \newcommand{\Q}{\,\textsf{Q}}
        %p-notations
        \newcommand{\pH}{\,\textsf{pH}}
        \newcommand{\pOH}{\,\textsf{pOH}}
        \newcommand{\pK}{\,\textsf{pK}}
        \newcommand{\pKa}{\pK_A}
        \newcommand{\pKb}{\pK_B}
        \newcommand{\pKw}{\pK_W}
        %eenheden
        \newcommand{\eenheid}[1]{\,\textsf{#1}\,}
        \newcommand{\eenh}[1]{\eenheid{#1}}

  3. #13
    Join Date
    Dec 2005
    Beans
    77

    Re: Efficiently Using LaTeX

    I think that the best way to do multiline equations is definitely the align environment:

    Code:
    \begin{align}
    x & = y \\
    y & = x
    \end{align}
    Should produce two equations, closely spaced, with the "&" used as the alignment point. That way you can do really nicely aligned equations, not just centered ones.

  4. #14
    Join Date
    Dec 2005
    Beans
    Hidden!

    Re: Efficiently Using LaTeX

    Quote Originally Posted by neoflight View Post
    include a new package called geometry.
    Code:
    \usepackage[left=1in,right=1in,top=1in,bottom=1in]{geometry}
    hope this helps...
    I'll definitely try that! Hope it works!

  5. #15
    Join Date
    Nov 2012
    Beans
    1

    Re: Efficiently Using LaTeX

    Dear Stievire,

    this is an inquiry about defining abbreviations in kile. According to the documentation it should be possible to insert newline by %n and the curser by %C. However, expanding my abbreviation just inserts the text as it is, i.e. %n introduces a comment rather than creating a newline.
    Could you give me a hint? (encoding, kile version, ...)

    Best regards
    Jan Mohring

  6. #16
    Join Date
    Oct 2006
    Beans
    58,282

    Re: Efficiently Using LaTeX

    Old thread back to sleep.

    Please start a new thread if required.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •