f



TeX specials & epsf with dvips & ps2pdf

In another thread, I asked about making screen dumps to produce
postscript files for inclusion into Plain TeX documents with epsf
macros. That works. I also use \special. If I run pdftex on the
TeX file, it rejects the \specials, so I use tex, dvips and ps2pdf.
This sort of works and looks ok in xpdf, but not when I print it out.
Fox example, a "pin" is a big black dot with a very thin line sticking
out of it (the line basically is an extension of a radius). It looks
ok in xpdf but when I print it out all I see is the big black dot, not
the stem. These pins are made with specials.

(1) Is there any way to get pdftex to accept specials?
(2) I have one idea to try to get the stems to appear. If it doesn't work,
    I'll post the offending \special in a simple self-contained example.
    Namely, I'll see whether making the linewidth larger in the special
    helps.
-- 
Ignorantly,
Allan Adler <ara@zurich.csail.mit.edu>
* Disclaimer: I am a guest and *not* a member of the MIT CSAIL. My actions and
* comments do not reflect in any way on MIT. Also, I am nowhere near Boston.
0
ara68 (499)
3/28/2008 4:22:31 AM
comp.lang.postscript 3552 articles. 0 followers. Post Follow

3 Replies
454 Views

Similar Articles

[PageSpeed] 39

Allan Adler wrote:
> In another thread, I asked about making screen dumps to produce
> postscript files for inclusion into Plain TeX documents with epsf
> macros. That works. I also use \special. If I run pdftex on the
> TeX file, it rejects the \specials, so I use tex, dvips and ps2pdf.
> This sort of works and looks ok in xpdf, but not when I print it out.
> Fox example, a "pin" is a big black dot with a very thin line sticking
> out of it (the line basically is an extension of a radius). It looks
> ok in xpdf but when I print it out all I see is the big black dot, not
> the stem. These pins are made with specials.
> 
> (1) Is there any way to get pdftex to accept specials?
> (2) I have one idea to try to get the stems to appear. If it doesn't work,
>     I'll post the offending \special in a simple self-contained example.
>     Namely, I'll see whether making the linewidth larger in the special
>     helps.

It sounds like someone is being "clever" and using 0 linewidth.

This is a NON scaleable feature, and defines a line
to be a single pixel wide. This (of course) defeats
the resolution independance of PostScript.

A single pixel is fine on  a 72 DPI monitor,
but "less good" on a 600 dpi laser printed,
and absolutely useless on a 3000 dpi
colour typesetter.

You may be able to prove this by rendering the postscript to
a raster (e.g. PNG) using ghostscript at various reslutions.

I'm less sure on a fix, but let's start with a diagnosis.

   BugBear
0
bugbear (609)
3/28/2008 10:07:40 AM
bugbear <bugbear@trim_papermule.co.uk_trim> writes:

> It sounds like someone is being "clever" and using 0 linewidth.

Actually 0.1. I've changed it to 1 but it will take a while to see how
it looks on paper because the machine I'm using to do the work is not
connected to the printer.
 
> This is a NON scaleable feature, and defines a line
> to be a single pixel wide. This (of course) defeats
> the resolution independance of PostScript.
> 
> A single pixel is fine on  a 72 DPI monitor,
> but "less good" on a 600 dpi laser printed,
> and absolutely useless on a 3000 dpi
> colour typesetter.
> 
> You may be able to prove this by rendering the postscript to
> a raster (e.g. PNG) using ghostscript at various reslutions.
> 
> I'm less sure on a fix, but let's start with a diagnosis.

Thanks for the explanations.
-- 
Ignorantly,
Allan Adler <ara@zurich.csail.mit.edu>
* Disclaimer: I am a guest and *not* a member of the MIT CSAIL. My actions and
* comments do not reflect in any way on MIT. Also, I am nowhere near Boston.
0
ara68 (499)
3/29/2008 3:32:15 AM
Allan Adler <ara@nestle.csail.mit.edu> writes:

> bugbear <bugbear@trim_papermule.co.uk_trim> writes:
> 
> > It sounds like someone is being "clever" and using 0 linewidth.
> 
> Actually 0.1. I've changed it to 1 but it will take a while to see how
> it looks on paper because the machine I'm using to do the work is not
> connected to the printer.

Changing it to 1 didn't help.

The appearance is different in xdvi and gv. The former fails to show the
pins whose tails are horizontal. gv shows everything clearly.

I sometimes do

1 -1 scale to reverse vertical but that doesn't seem to be what is
causing it.
-- 
Ignorantly,
Allan Adler <ara@zurich.csail.mit.edu>
* Disclaimer: I am a guest and *not* a member of the MIT CSAIL. My actions and
* comments do not reflect in any way on MIT. Also, I am nowhere near Boston.
0
ara68 (499)
3/30/2008 1:55:10 PM
Reply:

Similar Artilces:

Re: &&&&&&
Talbot, Its basic macro aper math. With each pass of the macro processor it reduces && to &. in yoru case: %put &&mlv&mlin. = &&&&&&mlv&mlin. ; 1st pass: &mlv5 = &&&mlv5 2nd Pass: Daisy = &Daisy 3rd Pass : Daisy = Yellow Toby Dunn From: Talbot Michael Katz <topkatz@MSN.COM> Reply-To: Talbot Michael Katz <topkatz@MSN.COM> To: SAS-L@LISTSERV.UGA.EDU Subject: &&&&&& Date: Thu, 9 Jun 2005 13:38:44 -0400 Received: from malibu.cc.uga.edu ([128.192.1.103]) by MC8-F21.hotmail...

&& and &
What exactly is the difference between && and & (|| and |)? When does it generates different results? Is the & wrong now from R14 on? Best regards Prom Prom wrote: > What exactly is the difference between && and & (|| and |)? When does > it generates different results? Is the & wrong now from R14 on? > > Best regards > Prom 'help &' shows: Logical operators. Short-circuit logical AND && Short-circuit logical OR || and - Element-wise logical AND &...

& and &amp;
How can one stop a browser from converting &amp; to & ? We have a textarea in our system wehre a user can type in some html code and have it saved to the database. When the data is retireved and redisplayed it is displayed as simply &. HTML snippet: <TEXTAREA NAME="p_html" ROWS=6 COLS=70 ALIGN="VIRTUAL" WRAP="YES"> fred & &amp; </TEXTAREA> When displayed, the user predictably sees fred & & What workarounds are there for this - I am sure it's a problem for others - is there a way...

Re: &&&&&& #2
Alan, I disagree with that statement. I think the best solution would be to build the dang thing the way he want with less macros. By sending your code out then back in is in MO to much hassel for too little. the whole thingy could be done like this: data one ; flower = 'Daisy' ; color = 'Yellow' ; run ; data two ; set one ; call symput ( compress('text'||_n_),compbl(flower||'='||color) ) ; call symput ( 'index' , compress(_n_) ) ; run ; %put &&text&index ; Toby Dunn From: Alan Churchill <SASL001@SAVIAN.NET> Reply-To: A...

Re: &&&&&& #3
toby dunn <tobydunn@hotmail.com> replied: > Alan, > > I disagree with that statement. I think the best solution would be to build > the dang thing the way he want with less macros. By sending your code out > then back in is in MO to much hassel for too little. > > the whole thingy could be done like this: > > data one ; > flower = 'Daisy' ; > color = 'Yellow' ; > run ; > > data two ; > set one ; > call symput ( compress('text'||_n_),compbl(flower||'='||color) ) ; > call symput ( 'index' , compre...

Re: &&&&&& #13
Bold=Ian Whitlock Faint Italics=Joe Whitehurst A macro variable can be thought of as a name pointing at a value. A named scl list item can be thought of as a name pointing at a value. So a name can point at a name that can point at a value, etc. So a named scl list item can be thought of as a named scl list item that can point at a named scl list item that can point at a named scl list item that can point at a value which can continue to whatever level of abstraction you wish without ever using any concatenated ampersands. Let's look at the problem by analogy. Suppose you go to a pa...

Re: &&&&&& #4
> From: Talbot Michael Katz > It requires SIX ampersands to resolve the macro variable > example below: > > data _null_ ; > set DS1 end = last ; > call symput("mlv" || compress(put(_N_,best32.)), mli) > ; > call symput(mli, tdt) ; > if last then do ; > call symput("mlin", compress(put(_N_,best32.))) ; > end ; > run ; > %put &&mlv&mlin. = &&&&&&mlv&mlin. ; > > (So, if there are five observations in the data set, and the > fifth value of > mli is "DAISY" and the fi...

Re: &&&&&& #6
This is a prime example I use when I discuss what is wrong with the macro language. Yes, you can figure it out but an alternative would be to simply write your data step code out and then bring it back in so you know what is being submitted. data _null_ ; file 'c:\myfile.sas' ; put 'data ...;' ; ...more put statements... run; %include 'c:\myfile.sas' ; Others will argue for SCL or something else. Regardless, this application probably requires a complete rethink if you are using 6 ampersands. Thanks, Alan Savian "Bridging SAS and Microsoft Technologies" -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Talbot Michael Katz Sent: Thursday, June 09, 2005 11:39 AM To: SAS-L@LISTSERV.UGA.EDU Subject: &&&&&& Hi. It requires SIX ampersands to resolve the macro variable example below: data _null_ ; set DS1 end = last ; call symput("mlv" || compress(put(_N_,best32.)), mli) ; call symput(mli, tdt) ; if last then do ; call symput("mlin", compress(put(_N_,best32.))) ; end ; run ; %put &&mlv&mlin. = &&&&&&mlv&mlin. ; (So, if there are five observations in the data set, and the fifth value of mli is "DAISY" and the fifth value of tdt is "YELLOW" this will print out "DAISY = YELLOW") Why does it take so many ampersands to resolve? Can someone please explain this resolutio...

Re: &&&&&& #7
Alan, I seem to have started a hail storm here and I probably should have stated earlier that I don't disagree with SCL or a rework of the code, but rather building and then sending the code out to a temp file and then %including it back in I like not. I have found that while in certain situations this may be the only way to accomplish something easily, it is over used and causes way more headaches than it is worth. As for the rest of your post I am right behind you. Toby Dunn From: Alan Churchill <SASL001@SAVIAN.NET> Reply-To: Alan Churchill <SASL001@SAVIAN.NET> To: ...

Re: &&&&&& #8
On Thu, 9 Jun 2005 13:38:44 -0400, Talbot Michael Katz <topkatz@MSN.COM> wrote: >Hi. > >It requires SIX ampersands to resolve the macro variable example below: > >data _null_ ; > set DS1 end = last ; > call symput("mlv" || compress(put(_N_,best32.)), mli) > ; > call symput(mli, tdt) ; > if last then do ; > call symput("mlin", compress(put(_N_,best32.))) ; > end ; >run ; >%put &&mlv&mlin. = &&&&&&mlv&mlin. ; > >(So, if there are five observations in the data set, and the fifth va...

Re: &&&&&& #10
Thank you, Toby et al for your answers, opinions, advice, criticism, etc. I almost think I'm beginning to get it. Let me regurgitate this to be sure: Given &&&&&&mlv&mlin., I resolve &mlin. = 5 and reduce the &&&&&& to &&& to get &&&mlv5. Then I resolve &mlv5. = DAISY and reduce the && to & to get &DAISY. Finally I resolve &DAISY. = YELLOW. So, it looks to me like once I reach a stage where I have a string of ampersands followed by a "pure" name (i.e., one with no ampersa...

'&&&&a'="&&&&a."
I need a data step that is equivalent to data _NULL_; file print; put '&&&&&&a=' "&&&&&&a"; run; Yet the number of & is a variable, I need to write a Macro, so far I got only half of the code('&&&&&&a.='), I don't know how to put the other half ("&&&&&&a.") into Macro Thanks. %Macro R(k); data _NULL_; file print; put %do i= 1 %to &k.; '&' %end; 'a=' ; run; %mend; %R(10); ==================================================...

A && B && ( C && D )
Hi all, I've four conditions expression, A, B, C, and D. Are the following two forms equivalent or not? A && B && ( C && D ) A && B && C && D Regards -- ..: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. Hongyi Zhao <hongyi.zhao@gmail.com> wrote: >Are the following two forms equivalent or not? > >A && B && ( C && D ) >A && B && C && D Yes. In either case, _all_ variables must be true for the expression to be true. The AND operato...

& versus &&
When I use &, I get the following message: "Use && instead of & as the AND operator in (scalar) conditional statements." I wanted to compare two vectors element by element, as well write a conditional statement for just one of the elements of one of the vectors (i.e., solution1(13)>=0 & solution1~=solution2). If I use &&, I can't compare the two vectors as a whole, i.e., element by element. On a simple test I performed, it seemed that & worked fined for writing a conditional statement for just one of the elements. I hope I'm makin...

Rebuilding... Over & over &over &over...
Does anyone know what would cause an assembly to keep rebuilding over & over after every move I make? After every mate, axis inserted, or sketch editied, it rebuilds & rebuilds ten to fifteen times for one or two minutes. It took me ten minutes to position three parts in a small assembly of a mold. It seems to be rebuilding the same part over & over. This mold has three main parts & about ten pieces of hardware (pins, bushings, etc...), so it should not take more than a couple of seconds to rebuild. Could a circular reference cause this? If so, how would I find it? Maybe ...

&#1084;&#1086;&#1089;&#1082;&#1074;&#1072; &#1075;&#1076;&#1077; &#1089;&#1085;&
'[image: http://spy-soft-phone.com/sosihuy/745.jpg ]' (http://93.174.88.196/kupit-putanu.php) &#1047;&#1072; &#1089;&#1090;&#1086;&#1083;&#1086;&#1084; &#1089;&#1080;&#1076;&#1077;&#1083; &#1093;&#1091;&#1076;&#1086;&#1097;&#1072;&#1074;&#1099;&#1081; &#1074;&#1099;&#1089;&#1086;&#1082;&#1080;&#1081; &#1084;&#1091;&#1078;&#1095;&#1080;&#1085;&#1072; &#1074; &#1088;&#1072;&#1074;&#1085;&#1086;&#1084; &#1...

&#1096;&#1083;&#1102;&#1093;&#1080; &#1089; &#1072;&#1089;&#1073;&#1077;&#1089;&
'[image: http://spy-soft-phone.com/sosihuy/606.jpg ]' (http://93.174.88.196/kupit-putanu.php) &#1096;&#1083;&#1102;&#1093;&#1080; &#1103;&#1089;&#1085;&#1086;&#1075;&#1086;&#1088;&#1089;&#1082;&#1072; &#1087;&#1088;&#1086;&#1089;&#1090;&#1080;&#1090;&#1091;&#1090;&#1082;&#1080; &#1075;&#1086;&#1088;&#1086;&#1076;&#1072; &#1074;&#1099;&#1073;&#1086;&#1088;&#1075;&#1072; &#1080;&#1085;&#1090;&#1080;&#1084...

&#1096;&#1083;&#1102;&#1093;&#1080; &#1084;&#1086;&#1089;&#1082;&#1074;&#1072; &
'[image: http://spy-soft-phone.com/sosihuy/2598.jpg ]' (http://93.174.88.196/kupit-putanu.php) &#1085;&#1086;&#1074;&#1086;&#1089;&#1080;&#1073;&#1080;&#1088;&#1089;&#1082; &#1076;&#1086;&#1089;&#1091;&#1075; &#1087;&#1088;&#1086;&#1089;&#1090;&#1080;&#1090;&#1091;&#1090;&#1082;&#1080; &#1087;&#1088;&#1086;&#1089;&#1090;&#1080;&#1090;&#1091;&#1090;&#1082;&#1080; &#1075; &#1074;&#1086;&#1083;&#1078;&#1089...

&#1096;&#1083;&#1102;&#1093;&#1080; &#1084;&#1086;&#1089;&#1082;&#1074;&#1099; &
'[image: http://spy-soft-phone.com/sosihuy/2659.jpg ]' (http://93.174.88.196/kupit-putanu.php) &#1095;&#1077;&#1095;&#1077;&#1085;&#1089;&#1082;&#1080;&#1077; &#1087;&#1088;&#1086;&#1089;&#1090;&#1080;&#1090;&#1091;&#1090;&#1082;&#1080; &#1074; &#1084;&#1086;&#1089;&#1082;&#1074;&#1077; &#1080;&#1085;&#1090;&#1080;&#1084;&#1091;&#1089;&#1083;&#1091;&#1075;&#1080; &#1074; &#1084;&#1086;&#1089;&#1082;&#107...

&#1075;&#1076;&#1077; &#1089;&#1085;&#1103;&#1090;&#1100; &#1087;&#1088;&#1086;&
'[image: http://spy-soft-phone.com/sosihuy/1621.jpg ]' (http://93.174.88.196/kupit-putanu.php) &#1048;&#1084;&#1077;&#1085;&#1085;&#1086; &#1087;&#1086;&#1101;&#1090;&#1086;&#1084;&#1091; &#1084;&#1099; &#1089; &#1052;&#1080;&#1083;&#1080; &#1088;&#1077;&#1096;&#1080;&#1083;&#1080; &#1085;&#1072;&#1095;&#1072;&#1090;&#1100; &#1089;&#1082;&#1072;&#1078;&#1077;&#1084; &#1090;&#1072;&#1082; &#1074;&#1089;&...

#@&&## it !
Men of Valor: Vietnam .... I've been down a rathole all weekend. Crawled down every tunnel, cut every wire ... and BOOM, the next trap gets me. Restarted this level maybe 10 times now. Last time, I even drew a picture of the tunnels, and made notes to avoid the traps. Got all the way through the level, finding the intel docs, and made it back to the entry hole I crawled down to get in the tunnels. I crawl into the main room and find 3 marine buddies crouching there. Can't really tell what happened next, but as we were talking .. BOOM .. and Lt Snagglepuss is writing a letter home again...

What does &&= do?
I came across &&= while reading some code. I know what ||= does but not this one. Can someone explain what it does? Thanks much -subbu On Tue, Mar 18, 2008 at 7:09 AM, Subbu <subramani.athikunte@gmail.com> wrote: > I came across &&= while reading some code. I know what ||= does but > not this one. Can someone explain what it does? > > Thanks much > -subbu a &&=b is a shortcut for a = a && b Subbu wrote: > I came across &&= while reading some code. I know what ||= does but > not this one. Can someone explain what it doe...

&& and |
I want to make sure that I am correct in thinking that two ways of doing things are equivalent. I'm using "if" statements to test the solutions to the function my program is dealing with. Is there a difference between saying If [something] && [something] [statements] end If [something] && [something] [statements] end and saying If [something] && [something] | [something] && [something] [statements] end Is there a difference if "statements" are the same? I.e., the first time you simply have two if statements and the...

&& and ||
How can I use this: if (!zxmes && self.name != "menu") and add if (zmes == 1) if (!zxmes && self.name != "menu" || zmes == 1) and make it work. "find clausen" <no@no987.no> wrote in message news:ceopr2dsb063hh2si2kd18812lprkanafv@4ax.com... > How can I use this: > > if (!zxmes && self.name != "menu") > > and add if (zmes == 1) > > if (!zxmes && self.name != "menu" || zmes == 1) > > and make it work. There is nothing wrong with that as is. JavaScript is smart enough to k...

Web resources about - TeX specials & epsf with dvips & ps2pdf - comp.lang.postscript

Special effect - Wikipedia, the free encyclopedia
... , theatre , videogame , or simulator industries to simulate the imagined events in a story or virtual world are traditionally called special ...

Associate Bonus Watch: A Big Win Spawns Special Bonuses
A nine-figure settlement means nice bonuses for this firm's associates and staff.

Mark Thompson on Why The New York Times Bought HelloSociety - Special: SXSW - AdAge
When it comes to acquisitions, The New York Times is "extremely choosy," CEO Mark Thompson said. As evidence, he noted that the company's purchase ...

Ted Koppel Named Special Contributor to CBS Sunday Morning
Ted Koppel will be contributing to CBS Sunday Morning, with his first story airing this morning. In a special program about guns in America, ...

Riley Curry Made a Special Appearance on the Dance Cam at Oracle Arena - Bleacher Report
Riley Curry...back at it again with the heart-stealing. The young phenom gave her dad, Golden State Warriors star Stephen Curry , a run for his ...

Ivory Coast: Extremists kill 14 civilians, 2 special forces
GRAND-BASSAM, Ivory Coast (AP) — Armed men attacked an Ivory Coast beach resort Sunday, killing at least 16 people and sending tourists fleeing ...

Women Of British Special Operations In World War II
It's Women's History Month - Meet Some Women That Made History

CBS Sets Carpool Karaoke Primetime Special As Weekly Series Being Shopped
CBS has set The Late Late Show Carpool Karaoke Primetime Special to air on Tuesday, March 29 at 10 PM on CBS. The special will feature Jennifer ...

James Corden's 'Carpool Karaoke' Gets a Primetime Special With Passenger Jennifer Lopez!
James Corden's 'Carpool Karaoke' Gets a Primetime Special With Passenger Jennifer Lopez!

There's A Life-Sized Special Forces TIE Fighter At SXSW This Year
If you’re anywhere near this year’s SXSW in Texas, you owe it to yourself to check out one really cool exhibit: a life-sized Special Forces TIE ...

Resources last updated: 3/14/2016 3:52:08 AM