Re: sed question (bibtex problem)

2000-11-07 Thread Brian May
 Daniel == Daniel Reuter [EMAIL PROTECTED] writes:

Daniel It should work from command line using bash's multiline
Daniel input capability (with the '). It checks for % at the end
Daniel of lines (hence the $), then reads the next line into the
Daniel buffer and then removes the %\n sequence (I don't quite
Daniel understand, why sed can't do it with the one-liner you
Daniel mentioned, but I guess there's a good reason).  Regards,
Daniel Daniel

Thanks! That is just what I wanted...

Now - how do I put this into a Makefile?

I found out how to put the command on one line:

sed '/%$/{ N; s/%\n//; }' report.bbl new

which works from zsh, but not make:

sed '/%{ N; s/%\n//; }' report.bbl  report.bbl.new
sed: -e expression #1, char 10: Unknown command: ``%''
make: *** [report.dvi.stamp] Error 1

Oh, I see the problem - the $/ bit has been removed (by make). How do I
get this to work?  No - \$/ just becomes \
-- 
Brian May [EMAIL PROTECTED]



Re: sed question (bibtex problem)

2000-11-05 Thread Daniel Reuter
Hello Brian,

Check this:

sed '/%$/{
N
s/%\n//
}' yourfile.bib

It should work from command line using bash's multiline input capability
(with the '). It checks for % at the end of lines (hence the $), then
reads the next line into the buffer and then removes the %\n sequence (I
don't quite understand, why sed can't do it with the one-liner you
mentioned, but I guess there's a good reason).
Regards,
Daniel

 On Fri, 3 Nov 2000, Brian May wrote:
 
  bibtex likes to word-wrap/mangle/destroy my long lines (eg. URLs) into
  this form:
  
  \bibitem[Mic00]{Microsoft2000}
  Microsoft.
  \newblock Windows 2000 kerberos authentication.
  \newblock White paper, Microsoft, January 2000.
  \newblock

  \url=http://www.microsoft.com/technet/win2000/win2ksrv/technote/kerberos.asp%
  =.
  
  which is interpreted by LaTeX to display a percent sign at the end of
  the URL :-(




Re: sed question (bibtex problem)

2000-11-02 Thread Damian Menscher
On Fri, 3 Nov 2000, Brian May wrote:

 bibtex likes to word-wrap/mangle/destroy my long lines (eg. URLs) into
 this form:
 
 \bibitem[Mic00]{Microsoft2000}
 Microsoft.
 \newblock Windows 2000 kerberos authentication.
 \newblock White paper, Microsoft, January 2000.
 \newblock
   
 \url=http://www.microsoft.com/technet/win2000/win2ksrv/technote/kerberos.asp%
 =.
 
 which is interpreted by LaTeX to display a percent sign at the end of
 the URL :-(

How about:
1. download source
2. fix source
3. send a patch to the maintainer

That way I won't have this problem when I use bibtex for urls in the
future.  ;)

Hmm, I guess that wasn't very helpful.  You might want to try adding a
'%' character to the end of your URL in your .bib file.  This might
survive past bibtex, and will tell LaTeX to ignore the remainder of the
line.  If the remainder of the line is just that extra character, it
might pull off what you're looking for.  Or not.  I haven't tested this.

Damian Menscher
-- 
--==## Grad. student  Sys. Admin. @ U. Illinois at Urbana-Champaign ##==--
--==## [EMAIL PROTECTED] www.uiuc.edu/~menscher/ Ofc:(217)333-0038 ##==--
--==## Physics Dept, 1110 W Green, Urbana IL 61801 Fax:(217)333-9819 ##==--