f

#### Plain TeX macro: figflow -- flow text around a figure

recently, in response to a post on comp.text.tex, Ian Hutchinson
posted a short piece of code to do this job.

the abstract i've written for the catalogue says
Provides a Plain TeX macro \figflow that allows one to insert a
figure into an area inset into a paragraph.  Command arguments
are width and height of the figure, and the figure (and its
caption) itself.  (Does not work with LaTeX.)

i asked (and was given) permission to put the file on ctan, and have
installed it on ctan in directory macros/plain/contrib/figflow

Robin Fairbairns

For the CTAN team

 0
10/4/2003 7:22:16 PM
comp.text.tex 39029 articles. 3 followers.

0 Replies
860 Views

Similar Articles

[PageSpeed] 32

Similar Artilces:

text-text
Wondering how what I input to my UTF-8 terminal gets passed along through my patched [1] trn ... Cyrillic: А Б В Г Д Е Ж З И Й К Л М Н О П а б в г д е ж з и й к л м н о п IPA: ᴀ ᴁ ᴂ ᴃ ᴄ ᴅ ᴆ ᴇ ᴈ ᴉ ᴊ ᴋ ᴌ ᴍ ᴎ ᴏ ɀ Ɂ ɂ Ƀ Ʉ Ʌ Ɇ ɇ Ɉ ɉ Ɋ ɋ Ɍ ɍ Ɏ ɏ [1] https://groups.google.com/d/msg/comp.sys.raspberry-pi/7Z37Hdrm0DM/6aqD-reXFzAJ ...

text + text
What is "text + text" supposed to do right now? It doesn't seem very useful to me. What about making "text + text" as an equivalent for "text || text"? Most strongly-typed programming languages do this. And MS SQL Server too, I think (CMIIW). -- dave ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org Am Freitag, 8. Oktober 2004 12:57 schrieb David Garamond: > What is "text + text" supposed to do right now? Nothing. > What about making "text + text" as an equivalent for "text > || text"? Most strongly-typed programming languages do this. And MS SQL > Server too, I think (CMIIW). What would this gain except for bloat? It's not like SQL is utterly compatible with any programming language; users will still have to learn all the operators anyway. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match Peter Eisentraut wrote: >>What is "text + text" supposed to do right now? > > Nothing. Then are these bugs? (7.4.5 and 8.0.0beta1 give same results). Frankly, the current behaviour is quite strange to me. ------------------ =...

Convert TeX to normal text (stripping macros)
Hi all, Does anyone know a good way to strip a TeX file from its macros in order to run grammar checking from LangauageTool on it? Please also see this bug report for Language Tool: https://sourceforge.net/tracker/index.php?func=detail&aid=2880449&group_id=110216&atid=655717 A Java implementation would be preferred since Language Tool is in Java so it runs platform independently. Thanks, Pander On Mon, 26 Sep 2011 03:39:01 -0700 (PDT), Pander wrote: > Does anyone know a good way to strip a TeX file from its macros I suggest you use one of the tools that convert from dvi/postscript/pdf to text: dvi2tty pstotext pdftotext That is, analyze the output, not the input to (La)TeX. Bob T. ...

Table.TeX in Plain TeX
Dear all Normally we use the "Table.TeX" for aligning and formatting Tables in Plain TeX. Unfortunately I don't have the "Table.TeX". Can any one supply this or give any ideas of where it can be found. Thanks and Regards Saravanan,M. India Saravanan_Typesetter@yahoo.co.in (Saravanan,M.) writes: >Normally we use the "Table.TeX" for aligning and formatting Tables in >Plain TeX. Unfortunately I don't have the "Table.TeX". i suspect you may be thinking of tables.tex (plural tables). that is available on ctan, together with some documentation: 1992/08/27 | 27040 | macros/plain/contrib/tabledoc.tex 1992/08/27 | 12539 | macros/plain/contrib/tables.tex -- Robin (http://www.tex.ac.uk/faq) Fairbairns, Cambridge On Thu, 1 Apr 2004, Robin Fairbairns wrote: > Saravanan_Typesetter@yahoo.co.in (Saravanan,M.) writes: > >Normally we use the "Table.TeX" for aligning and formatting Tables in > >Plain TeX. Unfortunately I don't have the "Table.TeX". What macros are used in your documents? > i suspect you may be thinking of tables.tex (plural tables). that is > available on ctan, together with some documentation: > > 1992/08/27 | 27040 | macros/plain/contrib/tabledoc.tex > 1992/08/27 | 12539 | macros/plain/contrib/tables.tex Or maybe Michael Wichura's ca 1988 TaBlE package, which is commercial and can be obtained from http://www.pctex.com/ and others....

setting TeX text variable depending on keyval-generated param? (low-level TeX question)
I am using keyval to set a "scaled" parameter and am having trouble getting the right behavior, which is: If I \usepackage{package} with no [scaled] option, I want to set a variable to a compile-time-specified default, say "s*[a.b]". If I \usepackage[scaled]{package}, same thing. And if I \usepackage[scaled=x.y], I want to set the variable to "s*[x.y]". (This is for font scaling, and I've used as my model the Helvetica scaled parameter.) The variable name (for the purposes of this conversation) is pnm@scaled. What I have that's not working correctly is: \expandafter\ifx\csname pmn@scaled\endcsname\relax \let\pmn@scaled\@empty \else \edef\pmn@scaled{s*[1.2]}% \fi I think what this says is "if pnm@scaled is not defined (case 1), leave it empty, otherwise set it to "s[1.2]". But the else clause is not working correctly, and I don't know how to differentiate between "defined by keyval but with no value" and "defined by keyval but with a value". Also I'm pretty sure I don't really know the difference between \let and \edef. Any help gratefully appreciated. Thanks. JDO john_owens@yahoo.com schrieb: > I am using keyval to set a "scaled" parameter and am having trouble > getting the right behavior, which is: > > If I \usepackage{package} with no [scaled] option, I want to set a > variable to a compile-time-specified default, say "s*[a.b]". > ...

Wrapping text not around a figure, but inside a figure
Hi all, I'm trying to replicate something like what can be seen in <http://www.gasl.org/refbib/Carroll__Alice_1st.pdf>, page 1091 (101 of 441), for instance, where most of a page is taken by a picture but there is a blank frame in it where there is text. The text flows from the previous page and into the next page, so I can't add it as a minipage, or something like that. I'm thinking that maybe I should alter page margins and manually place the picture with absolute position in the background, but I wonder if there could be a better solution. Also, if this is actually what I have to do, I'd like to have a solid frame showing the margin settings for the page, so I can properly position the text and picture, before having the actual text, is this feasible? Thanks -- Ignacio __ Fern�ndez Galv�n / /\ Linux user / / \ PGP Pub Key #289967 / / /\ \ 0x01A95F99 / / /\ \ \ http://djelibeibi.unex.es /________\ \ \ jellby \___________\/ yahoo.com http://www.tex.ac.uk/cgi-bin/texfaq2html?label=textflow Troy Henderson Amon other things, tlhiv saw fit to write: > http://www.tex.ac.uk/cgi-bin/texfaq2html?label=textflow Hmm... I know about wrapfig, and the other two pagckages (floatflt and picins) seem to do similar things. But what I'm after is not exactly the same, I think, or it would be the same if I can define a non-rectangular (and concave) shape for the figure. What I have is a figure that mostly fills the...

wrap text around text in latex

How to extract the plain text from a rich text ?
Hi everybody ! I can't find how to get a wxstring containing the plain text from a wxstring containing rich text. Does anybody how to do that ? Thanks ! ...

Sent Plain Text messages are now being saved as Plain Text in Eudora 7
Sent Plain Text messages are now being saved as Plain Text in Eudora 7. I have been sending in this suggestion for quite some time now and it appears that when sending a plain text message in Eudora Version 7, they are now being saved as plain text in the Out Mailbox. The last time this worked was in the Eudora 3.x Versions. With Eudora Versions 4, 5, and 6, the last time I remember checking was 6.1x, the saved messages in the Out Mailbox still contained HTML formatted text even though the messages were sent as plain text. If you were ever using or testing multiple versions of...

text around figure
Hello all, (Preemptive strike: Yes, I have read the FAQ. In fact, I read several. I also read a lot of pages on the subject. If any of them had worked, I obviously wouldn't need to ask.) I have a small eps picture I would like to have to the left of a paragraph in my latex document. I get the picture to appear in the document, but not to the left of the text. I simply don't understand how I am supposed to do that. I tried installing a bunch of packages, picins, floatflt, and some others. None of them would even install, so I can't really say if they work.. I'm new to tex/latex -- when I say "wouldn't even install", I mean that I'm using MiKTeX and klicking the "install this missing package" doesn't work (I tried two different servers, in case one was outdated (though the packages I tried installing were from the 90:s)). If I need to do something else, please let me know. Is there no obvious and simple way to get latex to make text flow around a figure that I have just overlooked? Thankful for any suggestions or pointers. This should hopefully work. Worked for me. \usepackage{graphics} \begin{document} \begin{tabular}{cp{2in}} \includegraphics{MyWonderfulImageFile.jpg} & This is my text which appears on left of the graphic file\\ \end{tabular} \end{document} The idea is to create a table with two columns, one for the picture and the text on the right. Mani wrote: > This should hopefully work. Worked for m...

Safari treats text/html as text/plain
I've been writing a new CGI script to do a sort of session login for some friends. I'd been testing it mostly with firefox, mozilla and opera, where it works OK, and so I decided to test it against the other browsers that I have installed on my Mac Powerbook (10.4.5). When I tried it with Safari, I was a bit surprised to see it display the HTML, rather than rendering it. I ran one of my web-test tools to see exactly what it was sending, and got this: : webcat +H http://roaringjelly.org/~jc/acct/login.cgi HTTP/1.1 200 OK Date: Mon, 10 Apr 2006 18:58:10 GMT Server: Apache/2.0.52 (Uni...

Old version of plain.tex and hyphen.tex
Hello All, I am trying to recreate an old version of our software that assumes an old version of Knuth's plain.tex (together with the version of hyphen.tex that accompanied it). I have searched the Internet for plain.tex Version 3.1415926 (together with hyphen.tex) with no success. Does anyone have a copy of these two files that they could email back to me? With great appreciation in advance! Brian O'Toole On Jul 2, 5:01 pm, "Brian O'Toole" <boto...@mathworks.com> wrote: > Hello All, > > I am trying to recreate an old version of our software that assumes an old > version of Knuth's plain.tex (together with the version of hyphen.tex that > accompanied it). I have searched the Internet for plain.tex Version > 3.1415926 (together with hyphen.tex) with no success. Does anyone have a > copy of these two files that they could email back to me? > > With great appreciation in advance! > Brian O'Toole TeXLive 7 (2002) has that version. If you can't get a copy of that CD, email me and I can send you the necessary files. Dan ...

How to convert markup text to plain text in python?
I have some marked up text and would like to convert it to plain text, by simply removing all the tags. Of course I can do it from first principles but I felt that among all Python's markup tools there must be something that would do this simply, without having to create an XML parser etc. I've looked around a bit but failed to find anything, any tips? (e.g. convert "<B>Today</B> is <U>Friday</U>" to "Today is Friday") Regards, Geoff > I have some marked up text and would like to convert it to plain text, > by simply removing all th...

Editing styled text, converting to HTML and plain text
Hi all. I'd like to create a fairly simple styled text editor (JTextPane?) for brief announcements which are stored in a database, and then presented to users on a website (in HTML), as well as emailed to them in both text/plain and text/html formats. I want users on multiple platforms (especially Linux, Windows and MacOS X) to be able to paste styled text into the editor, coming from a word processor. Are there examples of this sort of thing, especially: 1) An editor window, into which you can paste styled text, and save it as HTML 2) A way to remove the styling, for the text/plain versi...

Virus scanning: ignore text/plain and text/html?
I am setting up MIMEDefang to scan mail for viruses. It makes perfect sense to me to skip over the text/plain and text/html parts as I'm not sure how they could contain viruses. However, I haven't seen or heard of anyone else doing this. Anyone else looked into this? Comments? Matt Cuttitta wrote: > I am setting up MIMEDefang to scan mail for viruses. It makes perfect > sense to me to skip over the text/plain and text/html parts as I'm not > sure how they could contain viruses. Of curse they /can/ contain viruses, since the virus program generates them, and thus...

How export text shown by GIF/JPG to plain text ?
Hello you grpahics specialists. Can you help me? How can I use Photoshop or Paint Shop Pro to convert text visible in the viewed mage of a GIF, JPG, BMP, etc into plain text? (I am not referring to metadata such as EXIF.) When I used the standalone freeware 'Simple OCR' it replied it could not convert my JPG image (which showed approx eight short lines of text) into to plain text. I don't want to buy any special OCR application for this. Can PS or PSP do this natively? If a plugin is needed then I hope it is freeware! ---- As a seperate idea, is it possible to get on...

Plain TeX. Print a figure.
Hello, I begin in Plain TeX. I want to print the figure "f01.eps" Is it a correct method ? Thank. % - - - - - - - - - - - a.tex - - - - - - - - - - - \input epsf % - - - - - - - - - - - - - - - - - - - - - - - - - - - \parindent = 0.0cm \nopagenumbers \hsize = 8.0cm \vsize = 24.5cm \hoffset = -2.5cm \voffset = 0.0cm % - - - - - - - - - - - - - - - - - - - - - - - - - - - text text text text text text \centerline{\epsffile{f01.eps}} \smallskip \centerline{fig. 1} text text text text text text \centerline{\epsffile{f02.eps}} \smallskip \centerline{fig. 2} text text text text text text \bye "xhunga" <xhungab@yahoo.fr> writes: >I begin in Plain TeX. > >I want to print the figure "f01.eps" > >Is it a correct method ? why do you ask? -- is it not printing properly? (your method is certainly acceptable, capable of providing the correct output from the correct input, but there are several things that might go wrong.) -- Robin Fairbairns, Cambridge Robin Fairbairns a =E9crit : > > why do you ask? -- is it not printing properly? > > (your method is certainly acceptable, capable of providing the correct > output from the correct input, but there are several things that might > go wrong.) > -- > Robin Fairbairns, Cambridge Into the book of Christian Rolland "Latex par la pratique" O'Reilly. He says that it is best to use "graphics" instead of "...

How export text shown by GIF/JPG to plain text ?
Hello you grpahics specialists. Can you help me? How can I use Photoshop or Paint Shop Pro to convert text visible in the viewed mage of a GIF, JPG, BMP, etc into plain text? (I am not referring to metadata such as EXIF.) When I used the standalone freeware 'Simple OCR' it replied it could not convert my JPG image (which showed approx eight short lines of text) into to plain text. I don't want to buy any special OCR application for this. Can PS or PSP do this natively? If a plugin is needed then I hope it is freeware! ---- As a seperate idea, is it possible to get on...

Macro help for plain TeX
Hi All, I'm struggling with a macro that will typeset the title of a paper in plain. I want to be able type: \title First line of title Another line. Text following the title... In other words, the title appears as two centred lines with the line breaks set by the input. The blank line tells TeX that the title has ended. I've tried (naively?): \def\title{\bgroup\expandafter\obeylines\doline} \def\doline#1\par{\setbox0=\hbox{#1}\ifvoid0\let\next=\relax\egroup\else% \centerline{\bf #1}\let\next=\doline\fi\next} This is my first attempt at tail recursion in TeX - the idea is to do one line at a time until you find an empty one then stop. The above doesn't work. The problem seems to be getting the lines into the \doline macro properly. I put the \obeylines in the definition of \title to put a \par at the end of each line which are supposed to delimit the arguments to \doline. Any hints from the TeXsperts would be greatly appreciated. Duncan. Duncan Farrow <duncanfarrow@iprimus.com.au> writes: >Hi All, I'm struggling with a macro that will typeset the title of a paper >in plain. I want to be able type: > > \title > First line of title > Another line. > > Text following the title... > >In other words, the title appears as two centred lines with the line breaks >set by the input. The blank line tells TeX that the title has ended. > >I've tried (naively?): > >\...

Surrounding text with text
I was wondering if it was possible to surround a text body with text like so: +--------------+ |ABCDEFGHIJKLM | |H N| |A Main Body O| |L Text goes P| |B here Q| |-=+_ZYXWVUTSR | | | | | | | | | +--------------+ This seems far-fetched, but just curious. I suppose that I could just move stuff around by hand in the GIMP later on, but there's probably a {better,more {extensible,clean}} way of doing it from (La)TeX. -FreeSmith ptjm@interlog.com (Patrick TJ McPhee) wrote in message news:<bffbhe$per$1@news.eusc.inter.net>... > Peter Flynn had an example like that, which he either posted here or > posted a link here. It was something to do with a certificate -- try > searching for his name and that word in google. > > It wouldn't be hard to do with metapost. I have a macro called pathalong' > which puts text along an arbitrary path. Well, it's been a while, but I finally finished it. It's a little job I was doing for an upcoming wedding. At any rate, I used pstricks to make the text go along a path, along with a couple of hacks for sizing (from graphicx) and kerning along the line (from soul). Here's the code (don't laugh): CAUTION:THIS CODE MAY MAKE YOU WRETCH ---SNIP--- \documentclass{article} \usepackage{graphicx} \usepackage{pstricks,pst-text,nopageno} \usepackage[width=8.5in]{geometry} \usepackage{soul} \begin{document} \thispagestyle{empty} \set...

Why does $TEXT() not return text? I am looking at a file I have created named TMGUSRI2.m This is with GT.M 6.2-002A Here is a stat of the .m file and the .o file kdt0p@poweredge:/opt/worldvista/EHR/p$ stat TMGUSRI2.m File: TMGUSRI2.m' Size: 19171 Blocks: 40 IO Block: 4096 regular file Device: 821h/2081d Inode: 705008 Links: 1 Access: (0744/-rwxr--r--) Uid: ( 1000/ kdt0p) Gid: ( 1000/ kdt0p) Access: 2015-08-10 20:50:51.000000000 -0400 Modify: 2015-06-23 20:23:12.000000000 -0400 Change: 2015-06-23 20:23:11.000000000 -0400 Birth: - kdt0p@poweredge:/opt/worldvista/EH...

Type-written text to TeX?
Slightly OT, but I have several hundred pages of typewritten material already scanned in. (I just have a PDF file with one image per page.) There is a small amount of maths in it, but not much. Can anyone advise me of a good OCR program to use? I'd prefer a Linux program, but am not religious. I tried gocr, which was useless, and am presently trying clara, which looks as though it might work, although it seems to require several degrees in Computer Science to understand and use. Also, is there a program to abstract the images from the PDF file? I've written a little Java program to do this, but would prefer to use a kosher application. -- Timothy Murphy e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie tel: +353-86-2336090, +353-1-2842366 s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland Timothy Murphy wrote: > Slightly OT, but I have several hundred pages of typewritten material > already scanned in. (I just have a PDF file with one image per page.) > There is a small amount of maths in it, but not much. > > Can anyone advise me of a good OCR program to use? > I'd prefer a Linux program, but am not religious. > > I tried gocr, which was useless, > and am presently trying clara, which looks as though it might work, > although it seems to require several degrees in Computer Science > to understand and use. I have once (April 2001) reviewed several OCR solutions for UNIX, see http://tinyurl.com/54xdu ...

Plain TeX \frac macro
% I modified \frac to allow its use in \tt font % (see The TeXBook, page 311, answer to exercise 11.6) % The TeXBook version works only for \rm and \bf fonts % (because it always uses scriptfont0). % Revised version works with \tt in an ordinary table... % but it fails (bad number,\fam returns-1) % when the table is put inside a display % box because \fam is set to -1 % (TeXBook p. 154) % I would appreciate any suggestions on making % this revised version of \frac work inside a % display box. % Demonstration follows... % Thanks! Georges % Assumes plain.tex \def\frac#1/#2{\leavevmode\kern.1em \raise.5ex\hbox{\the\scriptfont\the\fam\relax #1}\kern-.1em% /\kern-.15em\lower.25ex\hbox{\the\scriptfont\the\fam\relax #2}} % Add font definitions for scriptfont in \tt \font\seventt=cmtt8 at 7pt \scriptfont\ttfam=\seventt \tt % typewriter font % Works fine in outside math mode \halign{\tabskip=1em \hfil#&&\hfil#\cr 1\frac2/3&2\frac3/4&3\frac4/5&4\frac5/6\cr} % Error when it's in math mode or math display box \vbox{% \halign{\tabskip=1em \hfil#&&\hfil#\cr 1\frac2/3&2\frac3/4&3\frac4/5&4\frac5/6\cr} } \end essej45us@yahoo.com (Georges) writes: > % Revised version works with \tt in an ordinary table... > % but it fails (bad number,\fam returns-1) > % when the table is put inside a display > % box because \fam is set to -1 > % (TeXBook p. 154) Two big problems: First, trivial, is that subscript fonts ar...

Text from required text box to read-only text box
Hello, I am fairly new to JavaScript and its use in Acrobat Professional. My situation is this: I have a form with a text box field which is required for the user to enter his/her name. I would like the required text box to display the name in all caps. I also need the user's name to appear in a read-only text box later in the form, which I would like to have the first letter of the user's first, middle initial, and last names to be capitalized. I would also like to have all required fields on the form highlighted in yellow, but the highlighting not printed. Lastly, I would like the...

text 2 text