Giter Site home page Giter Site logo

tueda / autobreak Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 144 KB

LaTeX package for simple line breaking of long formulae.

License: LaTeX Project Public License v1.3c

Makefile 14.21% TeX 73.93% Python 1.23% Lua 9.21% Shell 1.21% VBA 0.21%
latex math

autobreak's People

Contributors

tueda avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

autobreak's Issues

Typesetting error when equations contain &

& causes a typesetting error, even if it is in a subenvironment. For example,

\documentclass{minimal}
\usepackage{amsmath}
\usepackage{autobreak}
\begin{document}

\begin{align}
  \begin{autobreak}
    A =
    \begin{pmatrix} 1 & 2 \end{pmatrix}
  \end{autobreak}
\end{align}

\end{document}
! Argument of \autobreak has an extra }.
<inserted text>
                \par
l.11 \end{align}

Either ignore \\, or use it inside autobreak as an indication of "please break the line here"

Hi Takahiro
My name is Edgardo, and I am implementing some Java files that do automatic linebreaking for computer-generated LaTeX. And I liked the simplicity and design of your package.

There are two thing though: I couldn't see how to tell autobreak to "please break this line here", which is sometimes desired independent of linewidth. Also, with that same purpose people frequently edit the tex file manually, and the natural thing they try is to insert \\ (two characters, not four characters). But autobreak doesn't accept that (as you correctly say on page 7 of the autobreak PDF manual), and so the .tex file doesn't compile anymore.

What springs to my mind then are two possibilities. The first one is to use \\ as an indication of "please break this line here, regardless of linewidth". In that way, the two issues would get resolved in one shot. If having a command to indicate a line break is not possible, then the other possibility is to just ignore occurrences of \\ that people may end up inserting manually.

Are any of these possible?

Many thanks in advance, and best regards

Edgardo S. Cheb-Terrab
Editor, Computer Physics Communications.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.