LAMD Best Practices
Content Organization
File Structure
project/ ├── _common/ │ └── includes/ ├── _topic1/ │ └── includes/ └── lectures/
Naming Conventions
Use descriptive names
Follow consistent patterns
Include context in names
Version Control
Commit atomic changes
Write clear commit messages
Tag significant versions
Writing Guidelines
Content Style
\ifndef{clearName} \define{clearName} \section{Clear Title} \notes{ Start with overview... Provide details... End with summary... } \endif
Documentation
Comment complex macros
Explain non-obvious choices
Provide examples
Cross-References
Use consistent labels
Document dependencies
Maintain link validity
Technical Considerations
Performance
Optimize large media
Minimize dependencies
Cache when possible
Compatibility
Test all output formats
Provide fallbacks
Consider accessibility
Maintenance
Regular updates
Deprecation notices
Migration guides
Common Patterns
Content Structure
\ifndef{topic}
\define{topic}
\section{Topic}
% Context-specific content
\ifdef{SLIDES}
\slides{...}
\else
\notes{...}
\endif
\endif
Media Handling
\figure{\includediagram{name}{width}}
{Clear caption}{fig:label}
Code Blocks
\code{
# Clear, commented code
result = process(data)
}
Error Prevention
Common Mistakes
Missing \ifndef/\define
Incorrect nesting
Undefined references
Validation
Use lint tools
Automated testing
Format verification
Troubleshooting
Check build logs
Verify dependencies
Test in isolation