Giter Club home page Giter Club logo

tex-sidenotes's People

Contributors

adityam avatar andythomas avatar kgeishendorf avatar oliverschebaum avatar vdrewello avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tex-sidenotes's Issues

make all command compatible with handout and book style

It should be possible to typeset an input file with \documentclass{caesar-book} and \documentclass{caesar-handout} without changing other parts of the file. The output file should have the expected behavior, which is e.g. to swallow the abstract if book is used.

caesar_book.cls needs twoopt.sty

I was trying to test caesar_book.cls for something I'm writing. I got an error for unrecognized command \newcommandtwoopt. When I look at the code I don't see a RequiresPackage for twoopt. Am I missing something?

sidenotes seems to have stopped working with new xparse

With 'seems to have stopped working', I mean it definitely does not work any more, but I assume it did so before.

I have to be very carefull what I say here, because I am completely new to (La)Tex; on february 28 I installed TexLive using TexLive's own online installer install-tl-20170223 on Xubuntu 16.04.2 x64. But I am not the first to have bumped into this problem, although apparently nobody cared to report it to you. See e.g. Weird output from the sidenotes package.

A reply on that url links the problem to a change in the latest version of the xparse package, which I think may be similar to this issue : xparse's document commands used in math su(p|b)scripts with no brace give error #338

This simple code

\documentclass{book}
\usepackage{sidenotes}
\begin{document}
This text is annotated\marginnote{annotation} in the margin.
This text is annotated\footnote{annotation} in the footing.
This text is annotated\sidenote{annotation} in the margin.
\end{document}

gives the following error messages, all on the line with the call to \sidenote macro:

Illegal unit of measure (pt inserted). This text is annotated\sidenote{annotation}
Missing number, treated as zero. This text is annotated\sidenote{annotation}
Illegal unit of measure (pt inserted). This text is annotated\sidenote{annotation}
Missing number, treated as zero. This text is annotated\sidenote{annotation}
Illegal unit of measure (pt inserted). This text is annotated\sidenote{annotation}
Missing number, treated as zero. This text is annotated\sidenote{annotation}
Illegal unit of measure (pt inserted). This text is annotated\sidenote{annotation}
Missing number, treated as zero. This text is annotated\sidenote{annotation}
Illegal unit of measure (pt inserted). This text is annotated\sidenote{annotation}

Commenting out that \sidenote-line gives a nice result with a note in the margin and another one in the footing.

The reply I mentioned, also suggests a workaround that makes the \sidenote macro work again:

\makeatletter
\renewcommand* \@sidenotes@multisign {3sp}
\makeatother

sidenotes package is version 40658 (1.00)
xparse package is in l3packages, which is version 43183 (SVN 6878)

Generate caesar.sty

sidenotes.sty v2.0, but omits the optional parameters. They are not useful if several output formats are generated at the same time.

restructure caesar

put caesar.def, caesar-handout, cesar-book, macro.inp.tex, kindle.inp.tex in one cls file

make lexer debug option

Generate some code to test the .qx file without the .y file. Use the tex file as an input and generate the token list side by side with the tex source code.

provide margintext macro

introduce \margintext{}[] in sidenotes.sty to ensure interface consistency with the other macros

twoopt

get rid of the dependence on twoopt

Support listings in margin

Similar to marginfigure and margintable, introduce a way to place listings in the margin.

As far as I know, the existing code for marginfigure can be used and altered for this, i.e.

\newsavebox{\@sidenotes@marginlistingbox}
\DeclareCaptionStyle{marginlisting}{font=footnotesize}
\NewDocumentEnvironment{marginlisting} { o }
{
  \begin{lrbox}{\@sidenotes@marginlistingbox}
    \begin{minipage}{\marginparwidth}
      \captionsetup{type=listing,style=marginlisting}
}
{
    \end{minipage}%
  \end{lrbox}%
  \@sidenotes@placemarginal{#1}{\usebox{\@sidenotes@marginlistingbox}}
}

works.

caption for the small figure next to the figure in context kindle

The code for the LaTeX macro is:

\newcommand{\smallfigure}[2]{%
\begin{figure}[ht!]
\begin{minipage}[b]{110pt}
\centering
\includegraphics[width=110pt]{#1}
\end{minipage}
\hfill
\begin{minipage}[b]{110pt}
\centering
    \captionsetup{width=110pt, justification=RaggedRight}
    \caption{#2\label{#1}}%
\end{minipage}
\end{figure}
}

It is supposed to look like this:

Example caption

Example files?

Hello,

I liked your show-case in Stack Exchange. The link given on those page is broken. I wonder I could get the zip file of your document.

Book

Provide a second book-style with different chapter, section formatting and such.

\sidecite generates no number

\sidecite uses \margintext instead of \sidenote in the caesar module and, therefore, no number. solution has to tare care of expansion.

multi citation separator

Add a separator, e.g. '; and' between multi entries of a fullcite command.

is: E Maxwell, Isotope effect in the superconductivity of mercury, Physical Review 78 (1950) 477โ€“477, C Reynolds et al., Superconductivity of isotopes of mercury, Physical Review (1950)

should be: E Maxwell, Isotope effect in the superconductivity of mercury, Physical Review 78 (1950) 477โ€“477; and C Reynolds et al., Superconductivity of isotopes of mercury, Physical Review (1950)

Sidenotes can run past bottom of margin

Hey, before I started working on this (as a complete ConTeXt neophyte), I figured I'd add it as an issue to see if you had a solution in there that is not obvious to me, or if you had worked on it at all.

As I'm going to be using this with submissions, I'd rather try to have as much of the positioning automated to avoid significant edits.

(Also, thanks for all the work on this!)

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.