Ajoute du dossier packages pour rapport.tex (jc)

This commit is contained in:
John Charron 2010-12-15 15:17:44 +01:00
parent 4b457de495
commit a9d3f120ee
5 changed files with 185 additions and 0 deletions

BIN
packages/._Objective-C2.0.sty Executable file

Binary file not shown.

BIN
packages/._rapport.sty Executable file

Binary file not shown.

43
packages/Objective-C2.0.log Executable file
View File

@ -0,0 +1,43 @@
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) (format=pdflatex 2010.3.7) 29 MAR 2010 18:53
entering extended mode
\write18 enabled.
%&-line parsing enabled.
**Objective-C2.0.sty
(./Objective-C2.0.sty
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, german-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutc
h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, mono
greek, greek, hungarian, icelandic, indonesian, interlingua, irish, italian, ku
rmanji, latin, latvian, lithuanian, mongolian, mongolian2a, bokmal, nynorsk, po
lish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, span
ish, swedish, turkish, ukenglish, ukrainian, uppersorbian, welsh, loaded.
! LaTeX Error: \usepackage before \documentclass.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.1 \usepackage{
color}
?
! Emergency stop.
...
l.1 \usepackage{
color}
\usepackage may only appear in the document preamble, i.e.,
between \documentclass and \begin{document}.
Here is how much of TeX's memory you used:
7 strings out of 493848
300 string characters out of 3149208
48936 words of memory out of 3000000
3381 multiletter control sequences out of 15000+200000
3640 words of font info for 14 fonts, out of 3000000 for 9000
714 hyphenation exceptions out of 8191
5i,0n,5p,39b,14s stack positions out of 5000i,500n,10000p,200000b,50000s
! ==> Fatal error occurred, no output PDF file produced!

53
packages/Objective-C2.0.sty Executable file
View File

@ -0,0 +1,53 @@
\usepackage{color}
\usepackage{listings}
%Definition Objective-C 2.0
\definecolor{pink} {rgb}{0.67, 0.05, 0.57} % keywords
\definecolor{red} {rgb}{0.87, 0.20, 0.00} % strings
\definecolor{green} {rgb}{0.00, 0.47, 0.00} % comments
\definecolor{violet}{rgb}{0.41, 0.12, 0.61} % classes
\definecolor{blue} {rgb}{0.21, 0.00, 0.44} % functions
\definecolor{brown} {rgb}{0.39, 0.22, 0.13} % brown
\lstdefinelanguage{Objective-C 2.0}[Objective]{C} {
morekeywords={id, Class, SEL, IMP, BOOL, nil, Nil, NO, YES,
oneway, in, out, inout, bycopy, byref, IBOutlet, IBAction,
self, super, _cmd, retain, release, readwrite, nonatomic, readonly, autorelease, alloc, new, copy,
@required, @optional,
@try, @throw, @catch, @finally,
@synchronized, @property, @synthesize, @dynamic},
moredelim=[s][color{red}]{@''}{``},
moredelim=[s][color{red}]{<}{>}
}
\lstdefinestyle{Xcode} {
language = Objective-C 2.0,
basicstyle = \footnotesize\ttfamily,
identifierstyle = \color{black},
commentstyle = \color{green},
keywordstyle = \color{pink},
stringstyle = \color{red},
directivestyle = \color{brown},
extendedchars = true,
tabsize = 2,
showspaces = false,
showstringspaces = false,
breakautoindent = true,
flexiblecolumns = true,
keepspaces = true,
xleftmargin = 0pt
}
\lstset {
style = Xcode,
language = Objective-C2.0,
tabsize = 2,
frame = none,
framesep = 1em,
columns = flexible,
breaklines = true,
emph = {ABNewPersonViewController, ABPeoplePickerNavigationController,ABPersonViewController,ABUnknownPersonViewController,AVAudioPlayer,AVAudioRecorder,AVAudioSession,CAAnimation,CAAnimationGroup,CABasicAnimation,CADisplayLink,CAEAGLLayer,CAGradientLayer,CAKeyframeAnimation,CALayer,CAMediaTimingFunction,CAPropertyAnimation,CAReplicatorLayer,CAScrollLayer,CAShapeLayer,CATiledLayer,CATransaction,CATransformLayer,CATransition,CAValueFunction,CLHeading,CLLocation,CLLocationManager,EAAccessory,EAAccessoryManager,EAGLContext,EAGLSharegroup,EASession,GKPeerPickerController,GKSession,GKVoiceChatService,MFMailComposeViewController,MKAnnotationView,MKMapView,MKPinAnnotationView,MKPlacemark,MKReverseGeocoder,MKUserLocation,MPMediaItem,MPMediaItemArtwork,MPMediaItemCollection,MPMediaLibrary,MPMediaPickerController,MPMediaPlaylist,MPMediaPredicate,MPMediaPropertyPredicate,MPMediaQuery,MPMoviePlayerController,MPMusicPlayerController,MPVolumeView,NSArray,NSAssertionHandler,NSAtomicStore,NSAtomicStoreCacheNode,NSAttributeDescription,NSAutoreleasePool,NSBundle,NSCachedURLResponse,NSCalendar,NSCharacterSet,NSCoder,NSComparisonPredicate,NSCompoundPredicate,NSCondition,NSConditionLock,NSCountedSet,NSData,NSDate,NSDateComponents,NSDateFormatter,NSDecimalNumber,NSDecimalNumberHandler,NSDictionary,NSDirectoryEnumerator,NSDistributedNotificationCenter,NSEntityDescription,NSEntityMapping,NSEntityMigrationPolicy,NSEnumerator,NSError,NSException,NSExpression,NSFetchRequest,NSFetchRequestExpression,NSFetchedPropertyDescription,NSFetchedResultsController,NSFileHandle,NSFileManager,NSFormatter,NSHTTPCookie,NSHTTPCookieStorage,NSHTTPURLResponse,NSIndexPath,NSIndexSet,NSInputStream,NSInteger,NSInvocation,NSInvocationOperation,NSKeyedArchiver,NSKeyedUnarchiver,NSLocale,NSLock,NSMachPort,NSManagedObject,NSManagedObjectContext,NSManagedObjectID,NSManagedObjectModel,NSMappingModel,NSMessagePort,NSMethodSignature,NSMigrationManager,NSMutableArray,NSMutableCharacterSet,NSMutableData,NSMutableDictionary,NSMutableIndexSet,NSMutableSet,NSMutableString,NSMutableURLRequest,NSNetService,NSNetServiceBrowser,NSNotification,NSNotificationCenter,NSNotificationQueue,NSNull,NSNumber,NSNumberFormatter,NSObject,NSOperation,NSOperationQueue,NSOutputStream,NSPersistentStore,NSPersistentStoreCoordinator,NSPipe,NSPort,NSPredicate,NSProcessInfo,NSPropertyDescription,NSPropertyListSerialization,NSPropertyMapping,NSProxy,NSRecursiveLock,NSRelationshipDescription,NSRunLoop,NSScanner,NSSet,NSSortDescriptor,NSStream,NSString,NSThread,NSTimeZone,NSTimer,NSURL,NSURLAuthenticationChallenge,NSURLCache,NSURLConnection,NSURLCredential,NSURLCredentialStorage,NSURLProtectionSpace,NSURLProtocol,NSURLRequest,NSURLResponse,NSUndoManager,NSUserDefaults,NSValue,NSValueTransformer,NSXMLParser,NSXMLParserDelegate,SKMutablePayment,SKPayment,SKPaymentQueue,SKPaymentTransaction,SKProduct,SKProductsRequest,SKRequest,UIAcceleration,UIAccelerometer,UIAccessibilityElement,UIActionSheet,UIActivityIndicatorView,UIAlertView,UIAlertViewDelegate,UIApplication,UIApplicationDelegate,UIBarButtonItem,UIBarItem,UIButton,UIColor,UIControl,UIDatePicker,UIDevice,UIEvent,UIFont,UIImage,UIImagePickerController,UIImageView,UILabel,UILocalizedIndexedCollation,UIMenuController,UINavigationBar,UINavigationController,UINavigationItem,UIPageControl,UIPasteboard,UIPickerView,UIProgressView,UIResponder,UIScreen,UIScrollView,UISearchBar,UISearchDisplayController,UISegmentedControl,UISlider,UISwitch,UITabBar,UITabBarController,UITabBarItem,UITableView,UITableViewCell,UITableViewController,UITableViewDelegate,UITextField,UITextView,UIToolbar,UITouch,UIVideoEditorController,UIView,UIViewController,UIWebView,UIWindow},
emphstyle = \color{violet}
}
%Fin de la definition d'Objective-C

89
packages/rapport.sty Executable file
View File

@ -0,0 +1,89 @@
\def\institution#1{\def\@institution{#1}}
\def\blurb#1{\def\@blurb{#1}}
\def\maketitle{%
\thispagestyle{empty}%
\begin{adjustwidth}{-2.5cm}{-2.5cm}%
\center%
\begin{minipage}[c]{5.5cm}%
\includegraphics[height=2cm]{img/nouveauLogo_UM2.png}%
\end{minipage}%
\hfill%
\begin{minipage}[c]{7cm}%
\center%
\@institution%
\end{minipage}%
\hfill%
\begin{minipage}[c]{5.5cm}%
\raggedleft%
\includegraphics[height=2cm]{img/ufr.png}%
\end{minipage}%
%
\vskip 1cm%
\begin{minipage}[c]{5.5cm}%
\end{minipage}%
\hfill%
\begin{minipage}[c]{8cm}%
\center%
\@blurb%
\end{minipage}%
\hfill%
\begin{minipage}[c]{5.5cm}%
\end{minipage}%
%
\vfill%
\begin{center}%
\huge\@title\par%
\end{center}%
\vfill%
\center%
\Large\@author%
\vfill%
\begin{center}%
\includegraphics[height=2.5cm]{img/petitlogoUM2.png}%
\end{center}%
\end{adjustwidth}%
}
\hypersetup{%
colorlinks,%
linkcolor=black,%
filecolor=black,%
urlcolor=black,%
citecolor=black,%
pdftex%
}
\let\li\lstinline
\newlength\attentionlinewidth%
\long\def\attention#1{%
\def\attentionsignwidth{3em}%
\attentionlinewidth=\textwidth%
\advance\attentionlinewidth by -\attentionsignwidth%
\advance\attentionlinewidth by -2pt%
{%
\parindent=0pt%
\vspace{2pt}%
\framebox[\textwidth]{%
\begin{minipage}[c]{\textwidth}%
\begin{minipage}[c]{\attentionsignwidth}%
\vspace{2pt}%
\center%
\tikz{
\node[draw=red, thick, regular polygon, regular polygon
sides=3, inner sep=.2pt]{\small\bf !};%
}%
\vspace{2pt}%
\end{minipage}%
\begin{minipage}[c]{\attentionlinewidth}%
\vspace{2pt}%
#1%
\vspace{2pt}%
\end{minipage}%
\end{minipage}%
}%
\vspace{2pt}%
}%
}