verbatim environment inside center environment141 (8/13/2008 10:58:34 PM) comp.text.tex I had hoped the following would produce two centred lines of output. \documentclass{article} \begin{document} \begin{center} \begin{verbatim} Line 1 \end{verbatim} \verb+Line 2+ \end{center} \end{document} In... harper
internal file and namelist1246 (7/21/2008 10:33:15 PM) comp.lang.fortran Can an internal file be used for f2003 namelist I/O? The f95 standard 9.2.2.2 prohibits it. If there is a corresponding prohibition in the f2003 standard I failed to find it. MR&C "Fortran 95/2003 Explained"... harper
merge of character strings344 (6/13/2008 3:10:21 AM) comp.lang.fortran Is this program standard-conforming? Two f95 compilers gave the output I had expected, two others gave compile-time crashes. I suspect the point at issue is merge(tsource,fsource,mask) where the lengths of th... harper
Floating-point precision333 (2/23/2008 1:36:23 AM) comp.lang.fortran Given the following program, which works if and only if the compiler allows higher than double precision, I was surprised to find that a certain compiler, for which pdp = 15, php = 18, printed y with only 8 c... harper
character array constructor question377 (11/19/2007 11:00:22 PM) comp.lang.fortran Is the following program standard-conforming (a) in f95 (b) in f2003? Some compilers print out = aabbccddee should be aabbccddee but others don't, so I'm suspicious. PROGRAM testchararray IMPLICIT NONE ... harper
association of pointers639 (11/13/2007 11:09:02 PM) comp.lang.fortran In an attempt to understand pointers, I wrote the following: PROGRAM testassoc3 INTEGER, TARGET :: beast = 666 INTEGER, POINTER :: ptr => NULL() ALLOCATE(ptr) ptr = beast PRINT "(A,I4)",' After ptr... harper
assumed-length character variable244 (10/29/2007 8:54:30 PM) comp.lang.fortran The PRINT *,x//'BAR' statement in the program below is bad f77 because x is an assumed-length character variable: see the f77 standard 6.2.2. I couldn't find any such prohibition in f95, and six f95 compilers... harper
sanserif bold for dyadics221 (9/18/2007 12:34:24 AM) comp.text.tex A common font for dyadics is sanserif upper case bold roman. How does one put them in a document that is otherwise in Computer Modern? (I can manage upper case bold roman, but my problem is sanserif.) -- John... harper
Repeating main index entry if pagebreak at sub-entry127 (7/24/2007 2:45:16 AM) comp.text.tex I am using \documentclass{book}. If an index entry of the book has a lot of sub-entries, and a page break or column break occurs among the sub-entries, how does one get the main entry to be repeated at the top ... harper
scope of implied-do variable438 (6/8/2007 2:27:49 AM) comp.lang.fortran IMHO the program below is valid f95, because the f95 standard 14.1.3 says the scope of i in the implied-do in the line 2 array constructor is just that implied-do. If so, it can't be the same variable as the ... harper
Continued character constant1252 (10/15/2008 11:59:41 AM) comp.lang.fortran Hi all, When compiling an old and perhaps sloppy code (mopac), I encounter an error regarding improperly continued character constant with two out of four compilers I tried. I seems to boil down to question... user7(3884)
problem about exponent1744 (10/17/2008 1:47:25 AM) comp.lang.fortran Hi I have a problem about the output from following program (I use IMSL and also IVF): module p save real :: a,b end module p ! User-defined subroutine module aa contains SUBROUTINE FCN (N, X, F) use p IN... sulfateion(350)
how to specify unknown number of format before hand2641 (10/25/2008 12:04:04 AM) comp.lang.fortran Greetings. updating myself from earlier version of fortran to new one. How to format the following when we do not know 'n' before hand? real::x(100) ! just kept higher dimension as we do not know before hand ... soms.sharma(27)
convert a date to a number of days1466 (10/25/2008 9:22:50 PM) comp.lang.fortran Hi everybody, I would like to know if it exists an intrinsic function in Fortran to convert a date to a number of days ? For example the 25/10/2008 would be converted to: 2008*(365+1/4) + (31+29+31+30+31+30+... elodie.roux(82)
BibTeX key naming conventions?840 (10/26/2008 8:57:03 AM) comp.text.tex In the past I used the simple naming convention last namce of the lead author followed by year (and possibly a accession letter for multiple citations in a given year) for my BibTeX citation keys. Now that I ... ebo(169)
passing allocatable arrays11153 (11/3/2008 4:22:11 PM) comp.lang.fortran My intel10 compiler accepts this program, but the result crashes. program testpassalloc real,allocatable :: a(:) allocate(a(5)) print *,size(a) call s(a) print *,a(2) ... see449(230)
Square root of a negative rral value8674 (11/5/2008 11:33:03 PM) comp.lang.fortran I mentioned in another post that I was converting a mainframe Fortran IV program to F77 (and F90). I found that running the converted program with the original check data set that went with this, crashes on ... tbwright(1098)
Yet another problem with opening the same file twice2345 (11/6/2008 10:47:37 AM) comp.lang.fortran Hello, I ran into the following problem: in one program I am working with, an existing file has to be rewritten. I will not try to explain why this is necessary, but it all boils down to the following question... arjen.markus(2628)
Internal representation of a LOGICAL variable1533 (11/11/2008 7:09:56 PM) comp.lang.fortran Hello, I have a question with regards to the internal representation of a LOGICAL variable, especially from point of the gfortran compiler. First some background: The middle-end part of the GCC compiler has a... burnus(564)
Some simple Fortran77 questions1381 (11/16/2008 2:36:18 PM) comp.lang.fortran Hi Please can someone tell me how to a) test for the existence of a file I have tried to use IOSTAT i.e. open (5,file='test_file.txt',IOSTAT=ERR), but this will not compile. b) test for the end of a f... harveypollins2(29)