Incompatibility import.sty and standalone.sty
Duplicate of https://sourceforge.net/p/currfile/tickets/2/. Fixed in currfile (used internally by standalone) in v0.8 2022-10-10.
`tlmgr install standalone` lack dependency
Fix published in v1.3b 2022-10-10
Problems using Standalone after update
Closed as the problem got fixed upstream (LaTeX core).
the problem has been resolved in l3kernel, the document compiles for me now. https://github.com/latex3/latex3/issues/813
Hi, this is actually an issue with currfile package, also written by me, used by standalone. The following example file generates the same issue. The problem seems to be the space in the filename. As work-around I would suggest to rename your input files. \documentclass{article} \usepackage{currfile} \usepackage{import} \begin{filecontents}{"fi le"} File `fi le.tex' \end{filecontents} \begin{document} Before import statement \import{./}{"fi le"} After import statement \end{document}
Updated Makefile.
Unable to use algorithm environment in standalone document
Hi, the \onlyifstandalone macro is provided by the package and the class. So just using an article class and loading the standalone package there would work. The manual states which macros are provided by the package and which by the class (and which by both).
\marginpar does not work: You can't use `\end' in internal vertical mode.
`tlmgr install standalone` lack dependency
I added a DEPENDS.txt file in commit [8db5e4] to make TeXLive install the dependencies automatically. Will be part of the next release.
Ticket #7: Added DEPENDS.txt file for TeXLive.
Merge
Updated Makefile.
sort option removes content
Turns out I had a mistake in my Makefile. This ticket can be closed.
sort option removes content
`tlmgr install standalone` lack dependency
Many thanks for the detailed answer. The reason why I was using the class standalone was to be able to input it into the main document. So if I use the article class instead do I also get all the benefits of using the standalone package in the main file (eg. only a single preamble and imports, etc.)? Also, what would be the best way to use the macros provided by standalone (eg. \onlyifstandalone{〈code〉}) in a document with the article class? Would it just be a matter of importing standalone as a...
Hi, algorithm is basically a float like figure or table which cannot be catched inside a box (also not by a simple minipage etc.). I would recommend you to simply use a separate file with the article class instead and input that in the main file while loading the standalone package in it. I posted an extended answer on tex.se: https://tex.stackexchange.com/a/629935/2975
Unable to use algorithm environment in standalone document
Yes, marginpar and similar things are not supported. standalone is not intendend for normal running text, but for diagrams, single paragraphs etc. It does not provide a normal page setup with the text box and margins, but captures the content in a box. The options 'crop', 'preview' or 'varwidth' basically just add a paragraph box around the content before boxsing it to allow for vertical content. If you want to have running text with marginpars then you would need a different class or package. Maybe...
\marginpar does not work: You can't use `\end' in internal vertical mode.
PNG conversion no longer works with pdflatex
Something went wrong with the attachment in the original post, and I didn't find a way to edit it, so once more the attachment.
Incompatibility import.sty and standalone.sty
the problem has been resolved in l3kernel, the document compiles for me now. https://github.com/latex3/latex3/issues/813.
the problem has been resolved in l3kernel, the document compiles for me now. https://github.com/latex3/latex3/issues/813
Problems using Standalone after update
According to Ulrike Fischer is problem is: \aftergroup\endinput in \sa@enddocument is too early now, it interrupts the hook code
A simple example is \begin{filecontents}[overwrite]{file2.tex} \documentclass{article} \begin{document} blub \end{document} \end{filecontents} \documentclass[]{report} \usepackage{standalone} \begin{document} \input{file2.tex} \end{document} It fails only with lualatex (which uses a different implementation of a string comparision command). The problem seems to be the \aftergroup\endinput in \sa@enddocument which interrupts the command. I will also open an issue about the string comparision command,...
Problems using Standalone after update
Updated email address in Makefile
Updated Makefile to meet CTAN requests for ZIP file.
Issue with cropping using Qcircuit
Thanks for such a quick response Martin. My setup is a bit unusual, so modifying Qcircuit to include text in the bounding box might actually be the easiest solution. In any event, this doesn't appear to really be an issue with standalone, so feel free to close this. Thanks for all the work you've put into this tool!
Issue with cropping using Qcircuit
Hi Matthew, standaloneclipps to the official bounding box and some picture environments do not encount labels to their bounding boxes. There is nothing from within TeX what standalonecan do about it as it has no way to know where the ink is and not. Workarounds you can try: 1. you could try to make Qcircuitproduce the correct bounding box. Maybe there is an option, but I actually doubt that. 2. add a border using the border=<value> class option. This depends on the picture unfortunatly, i.e. needs...
Here's the clipped version.
Issue with cropping using Qcircuit
Added tag v1.3 for changeset 09225510954d
standalone.sty: Added check if \sa@requestedpage is undefined or empty, which can happen with newer versions of LuaLaTeX.
Fix for issue #22: Removed processing of AUX file with \globaldefs.
Added tag v1.3a for changeset 5babf1d45222
standalone.sty: Updated page handling to new graphics driver version.
Merged with LuaTeX fix fork from https://bitbucket.org/qulogic/standalone
Added test file for issue #35.
Corrected copyright year and executable flag on DTX file.
Use shellesc package instead of write18.
Added loading of LuaTeX compatibility packages for convert option. Changed filemodedate code to support LuaTeX.
Also set page{width,height} on LuaTeX >= 0.85.
Updated DTX file.
Fixing issue #26: Adding '-units PixelsPerInch' to 'convert' call so that generated PNGs have correct units parameter.
Set version-date to v1.3a 2018/03/26.
Updated copyright year range in README.
Fix for Issue #30: Replaced jobname with subjobname in DVIPS precommand.
standalone.cfg: Fixed log file warnings when used outside preamble by wrapping \PassOptionsToPackage call into preamble check.
Minor manual fix.
Loaded LuaLaTeX packages always with LuaTeX.
Fixed issue #40: Corrected order of border option in manual.
Updated bundle version to v1.3
Fix for issue #25: Changed how papersize special is added for dvips.
Fixes for multi,convert.
Fix for issue #31: Added \makeatother before inputting .sta files so that the subpreamble-changed test works with files using \makeatletter.
Don't set pdfpage{width,height} on LuaTeX > 0.85.
Improved shellescape code to ensure compatibility with all current LaTeX formats.
Minor manual fixes.
standalone:: Added dir structure.
standalone/dev/:: Imported first version of files.
dev/testmain.tex, dev/test.tex:: Added test files.
dev/standalone.sty:: Added macro to display needed packages. Requires an option to be added.
standalone.sty:: Package can now be cascaded.
testmain.tex, test2.tex:: Added cascaded file.
dev/standalone.cfg, dev/standalone.cls:: Added usage of config file.
dev/standalone.sty:: Added better space handling.
Added/updated test files.
dev/standalone.sty:: New supports all `\documentclass`es in sub-files. Some code style changes.
standalone.cls:: Real class incl. options can now be set using class options 'class' and 'classoptions'. Fixed: Beamer causes an error because it also checks for 'class' in the global class option list and tries to reload itself.
dev/standalone.cfg:: Moved 'tighpage' option from class to config file.
dev/standalone.sty:: Added empty 'standalone' environment.
dev/testbeamermain.tex:: Added beamer main test file.
standalone.dtx:: Created DTX file from cls, sty, tex and cfg files.
standalone.dtx:: Added svn:keywords.
standalone.ins, standalone.dtx:: Added keywords, updated info string.
dev/standalone.old.sty::
dev:: Updated ignore list.
dev/standalone.dtx:: Added usage examples.
dev/standalone.dtx:: Added instruction and usage section.
dev/standalone.dtx:: Added more usage information.
dev/standalone.dtx, testbeamer.tex, testbeamervrb.tex:: The 'standalone' environment can now be defined by the user in the config file to select how to compile the code in standalone mode. In beamer standalone mode the environment 'standaloneframe' must be used.
dev/standalone.dtx:: Moved redefinition of `\enddocument` to `\sa@document` to allow for correct use of `standalone.tex`.
dev/standalone.dtx:: Adjusting documentation.
dev/standalone.dtx:: Added support for all arguments of the beamer 'frame' to 'standaloneframe'.
dev/standalone.dtx:: Added some user information. Added support for optional title and subtitle arguments to `standaloneframe`.
dev/README:: Added small README file.
dev:: Updated svn:ignore list.
dev/standalone.dtx:: Adjusted release date.