[OS X TeX] Wrapping and formatting paragraphs in Texshop (and other misc.)
bvoisin at mac.com
Wed Jan 12 19:50:46 EST 2005
Le 12 janv. 05, à 21:16, David Arnold a écrit :
> I've noted that some of my files differ in Texshop. What I am working
> on came from the windows environment text system (Emacs + Miktex).
> Some times Ctrl+k will kill a single line, sometimes a whole
> paragraph. Thus, even though it looks like a nicely wrapped paragraph
> onscreen, it is really one long line. Even inverse search with pdfsync
> selects a "paragraph" indicating it is one long line.
This is Mac OS X default behaviour, same as in TextEdit, for example.
Called soft wrap, I think, ie wrapping on screen but not in the source
file, as opposed to hard wrap, ie wrapping both in the source file and
But not convenient with TeX, which was conceived with hard wrap in
mind. If only because isolating an error when only a line number is
given in the console window may be tricky when the line is very long.
Not convenient either with FileMerge (from Xcode), when looking for a
diff in a very long line.
> How can I reformat my document in Texshop so that one long line
> becomes a paragraph with line endings? So that when I hit Ctrl+k, I
> delete to the end of the line and not the whole paragraph?
> How can I turn on line endings in Texshop?
> How can I reformat a paragraph in Texshop?
> Does anyone know how to configure Texshop to show what line the cursor
> is on? I know about Command-L, but I want to see line number in the
> status bar (or somewhere).
> Does anyone know how to configure the cursor? I'd like to change its
> size to make it more visible. I have a hard time finding it on the
> screen with these old eyes. :-)
None of this, I think, is possible in TeXShop. There are hidden prefs
described in TeXShop's help, but I couldn't find any corresponding to
You may have a look at the shareware BBEdit or Alpha, which allow this
(Alpha having on top a very elaborate TeX menu, and a notion of modes à
la Emacs). Or install Emacs for Mac: Enhanced Carbon Emacs
<http://www.inf.unibz.it/~franconi/mac-emacs/> is especially geared
towards TeX, by incorporating AUCTeX and RefTeX. There are actually a
number of OS X Emacs out there. Quoting a previous message from 6
> OS X Emacs as part of a wider-range porting infrastructure
> - Fink build, for X11 (version 21.3.50, CVS 2004/11/17)
> - Fink build, for X11 with Xaw3d (version 21.3.50, CVS 2004/11/17)
> - DarwinPorts portfile, either X11 or Carbon (version 22.214.171.124,
> current CVS): to be built locally
> - There used to be a WebDAV server with some DarwinPorts builds,
> including Carbon Emacs, but I can't remember the URL for the life of
> Carbon Emacs
> - Andrew Choi's original Carbon build instructions
> - Seiji Zenitani's Carbon build (version 126.96.36.199, CVS 2004/12/07)
> - Ovidiu Predescu's Carbon build (version 188.8.131.52, CVS 2004/09/08)
> - Kevin Walzer's Carbon build (version 184.108.40.206, CVS 2004/08/04)
> - Alex Rice's Carbon build (version 220.127.116.11, CVS 2004/05/29)
> - David Caldwell's Carbon build (version 21.3.50, CVS 2002/11/26):
> Jaguar only
> Enhanced Carbon Emacs
> - Enrico Franconi's Carbon build with TeX enhancements (version
> 21.3.50, CVS 2003/11/14)
> Cocoa Emacs
> - Adrian Robert's Cocoa Emacs distro (version 20.7, released
> 2004/11/04): to be built locally
> - Christophe de Dinechin's Cocoa Emacs build (version 20.7, released
> 2002/08/27): Jaguar only
> Carbon XEmacs
> - Pitts Jarvis' Carbon XEmacs build (version 21.5.10, released
> 2003/03/17): Jaguar only
> Emacs goodies
> - David Reitter's OS X Emacs customization package
> - Massimiliano Gubinelli's alternative OS X Emacs icon
> - Mac OS X Emacs list archive
You may also prefer to build Emacs from CVS yourself. Quoting a message
by Thøger Juul Thorsen from 21 December:
> To build Emacs as a self-contained Carbon app (i.e. completely
> relocatable), do this:
> Make a directory called Emacs, or something. cd to the directory in
> Terminal, then build Info with
> curl -O ftp://ftp.gnu.org/gnu/texinfo/texinfo-4.3.tar.gz
> tar zxf texinfo-4.3.tar.gz
> cd texinfo-4.3
> CFLAGS="-g -O2 -D_INTL_REDIRECT_MACROS" ./configure
> sudo make install
> This then makes Emacs:
> cd ..
> export CVS_RSH="ssh"
> cvs -z3 -d:ext:anoncvs at savannah.gnu.org:/cvsroot/emacs co emacs
> (verify that the site's public key is
> cd emacs/mac
> ./make-package --self-contained
> This will create a self-contained emacs and place an installer in a
> .dmg in the emacs/mac directory.
> Now open the .dmg and drag the Application to your /Applications
> folder, and you're done.
Hope this helps,
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the MacOSX-TeX